Skip to content

Commit

Permalink
fix(main.py): Fix pylint warning
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Dec 12, 2024
1 parent 7d772b1 commit 53f962e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,10 +1114,9 @@ def traceback_exception_handler(request: Request, exc: Exception):
)


"""Workaround to use global exception handlers for versioned API.
The issue has already been reported here:
https://github.com/DeanWay/fastapi-versioning/issues/30
"""
# Workaround to use global exception handlers for versioned API.
# The issue has already been reported here:
# https://github.com/DeanWay/fastapi-versioning/issues/30
for sub_app in versioned_app.routes:
if hasattr(sub_app.app, "add_exception_handler"):
sub_app.app.add_exception_handler(
Expand Down

0 comments on commit 53f962e

Please sign in to comment.