We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 253395c commit c82663eCopy full SHA for c82663e
sentry_sdk/integrations/tornado.py
@@ -4,6 +4,7 @@
4
5
from sentry_sdk.hub import Hub, _should_send_default_pii
6
from sentry_sdk.utils import (
7
+ HAS_REAL_CONTEXTVARS,
8
event_from_exception,
9
capture_internal_exceptions,
10
transaction_from_function,
@@ -39,11 +40,11 @@ def setup_once():
39
40
if tornado_version is None or tornado_version < (5, 0):
41
raise RuntimeError("Tornado 5+ required")
42
- if sys.version_info < (3, 7):
43
+ if not HAS_REAL_CONTEXTVARS:
44
# Tornado is async. We better have contextvars or we're going to leak
45
# state between requests.
46
raise RuntimeError(
- "The tornado integration for Sentry requires Python 3.7+"
47
+ "The tornado integration for Sentry requires Python 3.6+ or the aiocontextvars package"
48
)
49
50
ignore_logger("tornado.application")
0 commit comments