We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c8886 commit 9985005Copy full SHA for 9985005
sentry_sdk/client.py
@@ -608,8 +608,12 @@ def _prepare_event(
608
"before_send", data_category="error"
609
)
610
611
- # XXX: Should only reset if this is an exception
612
- DedupeIntegration.reset_last_seen()
+ # If this is an exception, reset the DedupeIntegration. It still
+ # remembers the dropped exception as the last exception, meaning
613
+ # that if the same exception happens again and is not dropped
614
+ # in before_send, it'd get dropped by DedupeIntegration.
615
+ if event.get("exception"):
616
+ DedupeIntegration.reset_last_seen()
617
618
event = new_event
619
0 commit comments