Skip to content

Commit

Permalink
Guard against non-iterable NoneType here.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Sep 9, 2016
1 parent 088f68b commit 74fbce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bugwarrior/services/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _get_tags_from_sprints(self):
context = self.record.copy()
label_template = Template(self.origin['label_template'])

sprints = self.record.get('fields', {}).get(self.origin['sprint_field'], [])
sprints = self.record.get('fields', {}).get(self.origin['sprint_field']) or []
for sprint in sprints:
# Parse this big ugly string.
sprint = _parse_sprint_string(sprint)
Expand Down

0 comments on commit 74fbce7

Please sign in to comment.