fix(main): replace silent except-pass with exception logging to fix S110
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> Agent-Logs-Url: https://github.com/christianlouis/DocuElevate/sessions/9c3fe34a-35d6-4f32-8257-336f66aff7cf
This commit is contained in:
+2
-2
@@ -297,13 +297,13 @@ async def lifespan(app: FastAPI):
|
||||
try:
|
||||
logging.info("Application shutting down")
|
||||
except Exception:
|
||||
pass # noqa: S110
|
||||
_startup_logger.exception("Error during shutdown logging")
|
||||
|
||||
# Send shutdown notification
|
||||
try:
|
||||
notify_shutdown()
|
||||
except Exception:
|
||||
pass # noqa: S110
|
||||
_startup_logger.exception("Error sending shutdown notification")
|
||||
|
||||
|
||||
app = FastAPI(
|
||||
|
||||
Reference in New Issue
Block a user