Skip to content

Commit

Permalink
Don't throw an exception when issue reporter is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lutz committed Mar 1, 2013
1 parent aa54fd5 commit be890c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/survivor/tasks/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def create_issue(jira_issue):
updated=iso8601.parse_date(jira_issue.fields.updated),
url=jira_issue.self)

issue.reporter = get_or_create_user(jira_issue.fields.reporter)
if jira_issue.fields.reporter is not None:
issue.reporter = get_or_create_user(jira_issue.fields.reporter)
else:
issue.reporter = get_or_create_user(jira_issue.fields.assignee)

if jira_issue.fields.resolutiondate:
issue.closed = iso8601.parse_date(jira_issue.fields.resolutiondate)
Expand Down

0 comments on commit be890c9

Please sign in to comment.