From 8fcc223ef19cf609d8413fb6091eabfa0b34d4a6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Mar 2026 01:11:23 +0000 Subject: [PATCH] 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 --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 9315e03c..5a0c6816 100644 --- a/app/main.py +++ b/app/main.py @@ -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(