Skip to content

Commit a69665d

Browse files
committed
better error handling
1 parent 59d690c commit a69665d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sentry/issues/ingest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,9 @@ def save_issue_from_occurrence(
242242
try:
243243
# Since this calls hybrid cloud it has to be run outside the transaction
244244
assignee = occurrence.assignee.resolve()
245-
except Exception:
246-
logger.exception("Failed to resolve assignee for occurrence")
247-
else:
248245
GroupAssignee.objects.assign(group, assignee, create_only=True)
246+
except Exception:
247+
logger.exception("Failed process assignment for occurrence")
249248

250249
else:
251250
group = existing_grouphash.group

0 commit comments

Comments
 (0)