From 53f962e8ee5d2dfe0e3a5e86005b6c243eae5a3b Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Thu, 12 Dec 2024 20:44:34 +0200 Subject: [PATCH] fix(main.py): Fix pylint warning Signed-off-by: Denys Fedoryshchenko --- api/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/api/main.py b/api/main.py index 5db28950..a664dedb 100644 --- a/api/main.py +++ b/api/main.py @@ -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(