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.
"rc"
1 parent 55b2902 commit c318b90Copy full SHA for c318b90
sentry_sdk/integrations/sqlalchemy.py
@@ -1,5 +1,7 @@
1
from __future__ import absolute_import
2
3
+import re
4
+
5
from sentry_sdk._types import MYPY
6
from sentry_sdk.hub import Hub
7
from sentry_sdk.integrations import Integration, DidNotEnable
@@ -28,7 +30,9 @@ def setup_once():
28
30
# type: () -> None
29
31
32
try:
- version = tuple(map(int, SQLALCHEMY_VERSION.split("b")[0].split(".")))
33
+ version = tuple(
34
+ map(int, re.split("b|rc", SQLALCHEMY_VERSION)[0].split("."))
35
+ )
36
except (TypeError, ValueError):
37
raise DidNotEnable(
38
"Unparsable SQLAlchemy version: {}".format(SQLALCHEMY_VERSION)
0 commit comments