File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,15 +14,10 @@ def install(self):
1414 with configure_scope () as scope :
1515
1616 @scope .add_error_processor
17- def processor (event , error ):
18- exc_info = event .get ("__sentry_exc_info" )
19- if exc_info and exc_info [1 ] is not None :
20- exc = exc_info [1 ]
21- if last_seen .get (None ) is exc :
22- seen = True
23- else :
24- seen = False
25- last_seen .set (exc )
26- if seen :
27- return None
17+ def processor (event , exc_info ):
18+ exc = exc_info [1 ]
19+ if last_seen .get (None ) is exc :
20+ return
21+ seen = False
22+ last_seen .set (exc )
2823 return event
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def apply_to_event(self, event):
8585 event .setdefault ("contexts" , {}).update (contexts )
8686
8787 exc_info = event .get ("__sentry_exc_info" , None )
88- if exc_info is not None :
88+ if exc_info and exc_info [ 0 ] is not None :
8989 for processor in self ._error_processors :
9090 event = processor (event , exc_info )
9191 if event is None :
You can’t perform that action at this time.
0 commit comments