Skip to content

Commit

Permalink
fix(api): Don't error if releases/commits don't exist when attempting…
Browse files Browse the repository at this point in the history
… to fetch incident suspects.

No need to error here, just don't return anything
  • Loading branch information
wedamija committed Jun 10, 2019
1 parent 9c43c42 commit de71f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/incidents/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def get_incident_suspects(incident, projects):
event = group.get_latest_event_for_environments()
try:
committers = get_event_file_committers(group.project, event)
except Release.DoesNotExist, Commit.DoesNotExist:
except (Release.DoesNotExist, Commit.DoesNotExist):
continue
for committer in committers:
author = committer['author']
Expand Down

0 comments on commit de71f57

Please sign in to comment.