fix(main): suppress S110 ruff warnings with noqa comments for intentional try-except-pass
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> Agent-Logs-Url: https://github.com/christianlouis/DocuElevate/sessions/da38721d-bd24-40e2-97a8-08edf261006e
This commit is contained in:
+2
-2
@@ -284,13 +284,13 @@ async def lifespan(app: FastAPI):
|
|||||||
# Shutdown: Cleanup tasks
|
# Shutdown: Cleanup tasks
|
||||||
try:
|
try:
|
||||||
logging.info("Application shutting down")
|
logging.info("Application shutting down")
|
||||||
except Exception:
|
except Exception: # noqa: S110
|
||||||
pass # During test teardown, logging streams may already be closed
|
pass # During test teardown, logging streams may already be closed
|
||||||
|
|
||||||
# Send shutdown notification
|
# Send shutdown notification
|
||||||
try:
|
try:
|
||||||
notify_shutdown()
|
notify_shutdown()
|
||||||
except Exception:
|
except Exception: # noqa: S110
|
||||||
pass # During test teardown, I/O streams may already be closed
|
pass # During test teardown, I/O streams may already be closed
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user