8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df542a2 commit 9c72c22Copy full SHA for 9c72c22
sentry_sdk/utils.py
@@ -792,7 +792,9 @@ def _is_contextvars_broken():
792
from gevent.monkey import is_object_patched # type: ignore
793
794
# Get the MAJOR and MINOR version numbers of Gevent
795
- version_tuple = tuple([int(part) for part in gevent.__version__.split(".")[:2]])
+ version_tuple = tuple(
796
+ [int(part) for part in re.split(r"a|b|rc|\.", gevent.__version__)[:2]]
797
+ )
798
if is_object_patched("threading", "local"):
799
# Gevent 20.9.0 depends on Greenlet 0.4.17 which natively handles switching
800
# context vars when greenlets are switched, so, Gevent 20.9.0+ is all fine.
0 commit comments