Skip to content

Commit 9f06a20

Browse files
committed
.
1 parent 510d0e7 commit 9f06a20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sentry_sdk/integrations/threading.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def _run_old_run_func():
106106
with sentry_sdk.use_isolation_scope(isolation_scope_to_use):
107107
with sentry_sdk.use_scope(current_scope_to_use):
108108
return _run_old_run_func()
109+
else:
110+
with sentry_sdk.isolation_scope():
111+
return _run_old_run_func()
109112

110113
return run # type: ignore
111114

0 commit comments

Comments
 (0)