Skip to content

Commit 11f7437

Browse files
authored
Merge pull request #24 from taskiq-python/feature/small-fixes
2 parents b1af5ac + 834413e commit 11f7437

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

aiohttp_deps/initializer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

aiohttp_deps/swagger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)