Skip to content

Commit 53f962e

Browse files
committed
fix(main.py): Fix pylint warning
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 7d772b1 commit 53f962e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

api/main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,10 +1114,9 @@ def traceback_exception_handler(request: Request, exc: Exception):
11141114
)
11151115

11161116

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

0 commit comments

Comments
 (0)