Skip to content

Commit 1f6743c

Browse files
authored
Fix typo. (getsentry#717)
* Fix typo. * Change aiohttp version getter.
1 parent e5e2ac5 commit 1f6743c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sentry_sdk/integrations/aiohttp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ def setup_once():
5151
# type: () -> None
5252

5353
try:
54-
version = tuple(map(int, AIOHTTP_VERSION.split(".")))
54+
version = tuple(map(int, AIOHTTP_VERSION.split(".")[:2]))
5555
except (TypeError, ValueError):
56-
raise DidNotEnable("AIOHTTP version unparseable: {}".format(version))
56+
raise DidNotEnable(
57+
"AIOHTTP version unparseable: {}".format(AIOHTTP_VERSION)
58+
)
5759

5860
if version < (3, 4):
5961
raise DidNotEnable("AIOHTTP 3.4 or newer required.")

0 commit comments

Comments
 (0)