Skip to content
7 changes: 4 additions & 3 deletions sentry_sdk/integrations/dedupe.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ def processor(event, hint):
if exc_info is None:
return event

exc = exc_info[1]
if integration._last_seen.get(None) is exc:
exc_id = id(exc_info[1])
if integration._last_seen.get(None) == exc_id:
return None
integration._last_seen.set(exc)

integration._last_seen.set(exc_id)
return event

@staticmethod
Expand Down
Loading