Skip to content

Commit c4cf8eb

Browse files
.
1 parent 5aabcba commit c4cf8eb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

sentry_sdk/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import base64
2-
import contextvars
32
import copy
43
import json
54
import linecache
@@ -1445,9 +1444,7 @@ def _get_contextvars() -> "Tuple[bool, type]":
14451444
Please refer to https://docs.sentry.io/platforms/python/contextvars/ for more information.
14461445
"""
14471446

1448-
_is_sentry_internal_task = contextvars.ContextVar(
1449-
"is_sentry_internal_task", default=False
1450-
)
1447+
_is_sentry_internal_task = ContextVar("is_sentry_internal_task", default=False)
14511448

14521449
# These exceptions won't set the span status to error if they occur. Use
14531450
# register_control_flow_exception to add to this list

0 commit comments

Comments
 (0)