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 9a955f4 commit fd8da15
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.

Check warning on line 1117 in api/main.py

View workflow job for this annotation

GitHub Actions / Lint

block comment should start with '# '
#The issue has already been reported here:

Check warning on line 1118 in api/main.py

View workflow job for this annotation

GitHub Actions / Lint

block comment should start with '# '
#https://github.com/DeanWay/fastapi-versioning/issues/30

Check warning on line 1119 in api/main.py

View workflow job for this annotation

GitHub Actions / Lint

block comment should start with '# '
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 fd8da15

Please sign in to comment.