Skip to content

Commit 63b25d9

Browse files
committed
More cleanup
1 parent 4b44cba commit 63b25d9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sentry_sdk/integrations/starlette.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ class StarletteIntegration(Integration):
8484
origin = f"auto.http.{identifier}"
8585

8686
transaction_style = ""
87-
starlette_version = None
8887

8988
def __init__(
9089
self,
@@ -125,9 +124,9 @@ def __init__(
125124
@staticmethod
126125
def setup_once():
127126
# type: () -> None
128-
StarletteIntegration.starlette_version = parse_version(STARLETTE_VERSION)
127+
version = parse_version(STARLETTE_VERSION)
129128

130-
if StarletteIntegration.starlette_version is None:
129+
if version is None:
131130
raise DidNotEnable(
132131
"Unparsable Starlette version: {}".format(STARLETTE_VERSION)
133132
)
@@ -136,7 +135,7 @@ def setup_once():
136135
patch_asgi_app()
137136
patch_request_response()
138137

139-
if StarletteIntegration.starlette_version >= (0, 24):
138+
if version >= (0, 24):
140139
patch_templates()
141140

142141

0 commit comments

Comments
 (0)