File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments