Skip to content

Commit ca2185c

Browse files
committed
Clear iso scope if propagate_scope is False
1 parent 0b59073 commit ca2185c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/threading.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ def _run_old_run_func():
115115
with sentry_sdk.use_scope(current_scope_to_use):
116116
return _run_old_run_func()
117117
else:
118-
with sentry_sdk.isolation_scope():
118+
with sentry_sdk.isolation_scope() as scope:
119+
scope.clear()
119120
return _run_old_run_func()
120121

121122
return run # type: ignore

0 commit comments

Comments
 (0)