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:
126126 :param app: current application.
127127 """
128128 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 )
132132 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
288288 extra_openapi_schemas = route_extra_schemas ,
289289 )
290290 except Exception as exc : # pragma: no cover
291- logger .warn (
291+ logger .warning (
292292 "Cannot add route info: %s" ,
293293 exc ,
294294 exc_info = True ,
@@ -316,7 +316,7 @@ async def event_handler(app: web.Application) -> None: # noqa: C901
316316 extra_openapi_schemas = route_extra_schemas ,
317317 )
318318 except Exception as exc : # pragma: no cover
319- logger .warn (
319+ logger .warning (
320320 "Cannot add route info: %s" ,
321321 exc ,
322322 exc_info = True ,
You can’t perform that action at this time.
0 commit comments