File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,10 @@ def install(self):
14
14
with configure_scope () as scope :
15
15
16
16
@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 )
28
23
return event
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def apply_to_event(self, event):
85
85
event .setdefault ("contexts" , {}).update (contexts )
86
86
87
87
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 :
89
89
for processor in self ._error_processors :
90
90
event = processor (event , exc_info )
91
91
if event is None :
You can’t perform that action at this time.
0 commit comments