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:
copilot-swe-agent[bot]
2026-03-24 01:11:23 +00:00
parent ce050b542a
commit 8fcc223ef1
+2 -2
View File
@@ -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(