From de71f5796e313100da24312837c32bd8aec35d6b Mon Sep 17 00:00:00 2001 From: Dan Fuller Date: Fri, 7 Jun 2019 10:54:51 -0700 Subject: [PATCH] fix(api): Don't error if releases/commits don't exist when attempting to fetch incident suspects. No need to error here, just don't return anything --- src/sentry/incidents/logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/incidents/logic.py b/src/sentry/incidents/logic.py index 4207ef5922660b..3f0b44e4252bd3 100644 --- a/src/sentry/incidents/logic.py +++ b/src/sentry/incidents/logic.py @@ -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']