Skip to content

Commit

Permalink
Handle unavailable description attr
Browse files Browse the repository at this point in the history
This fixes the following error:

AttributeError: 'Filter' object has no attribute 'description'
  • Loading branch information
toabctl committed Mar 17, 2014
1 parent 9471f86 commit b0b2fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jiracli
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def filter_list_print(filter_list):
#fields to show for the filter
fields = OrderedDict()
fields['Url'] = f.viewUrl
fields['description'] = f.description
fields['description'] = getattr(f, 'description', '')
fields['owner'] = f.owner.name
fields['jql'] = f.jql
#add empty strings if field not available
Expand Down

0 comments on commit b0b2fbc

Please sign in to comment.