File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -126,8 +126,8 @@ async def init(app: web.Application) -> None:
126
126
:param app: current application.
127
127
"""
128
128
for route in app .router .routes ():
129
- if inspect .isclass (route ._handler ):
130
- if issubclass (route ._handler , View ):
131
- route ._handler = InjectableViewHandler (route ._handler )
129
+ if inspect .isclass (route .handler ):
130
+ if issubclass (route .handler , View ):
131
+ route ._handler = InjectableViewHandler (route .handler )
132
132
continue
133
- route ._handler = InjectableFuncHandler (route ._handler )
133
+ route ._handler = InjectableFuncHandler (route .handler )
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ async def event_handler(app: web.Application) -> None: # noqa: C901
288
288
extra_openapi_schemas = route_extra_schemas ,
289
289
)
290
290
except Exception as exc : # pragma: no cover
291
- logger .warn (
291
+ logger .warning (
292
292
"Cannot add route info: %s" ,
293
293
exc ,
294
294
exc_info = True ,
@@ -316,7 +316,7 @@ async def event_handler(app: web.Application) -> None: # noqa: C901
316
316
extra_openapi_schemas = route_extra_schemas ,
317
317
)
318
318
except Exception as exc : # pragma: no cover
319
- logger .warn (
319
+ logger .warning (
320
320
"Cannot add route info: %s" ,
321
321
exc ,
322
322
exc_info = True ,
You can’t perform that action at this time.
0 commit comments