Skip to content

Commit

Permalink
style: Hide false-positive error about using exc_info outside of exce…
Browse files Browse the repository at this point in the history
…pt block

As default handler will be called right in `except` block within
`error_middleware`.
  • Loading branch information
playpauseandstop committed Aug 14, 2024
1 parent fb0571e commit 2263619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiohttp_middlewares/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def default_error_handler(request: web.Request) -> web.Response:
.. versionadded:: 1.0.0
"""
with error_context(request) as context:
logger.error(context.message, exc_info=True)
logger.error(context.message, exc_info=True) # noqa: LOG014
return web.json_response(context.data, status=context.status)


Expand Down

0 comments on commit 2263619

Please sign in to comment.