shaliz-kong commited on
Commit
7f15715
Β·
1 Parent(s): f88f405

sleep engine through self induced error

Browse files
Files changed (1) hide show
  1. app/main.py +3 -3
app/main.py CHANGED
@@ -14,7 +14,7 @@ import pathlib
14
  import json
15
 
16
  # # ─── Third-Party ──────────────────────────────────────────────────────────────
17
- from fastapi import FastAPI, Depends, HTTPException, Request, Query, BackgroundTasks
18
  from fastapi.middleware.cors import CORSMiddleware
19
  from fastapi.responses import JSONResponse
20
  from contextlib import asynccontextmanager
@@ -148,14 +148,14 @@ async def lifespan(app: FastAPI):
148
  try:
149
  conn.close()
150
  logger.info(f" β†’ Closed DB: {org_id}")
151
- except:
152
  pass
153
 
154
  if _vector_db_conn:
155
  try:
156
  _vector_db_conn.close()
157
  logger.info(" β†’ Closed Vector DB")
158
- except:
159
  pass
160
 
161
  logger.info("βœ… Shutdown complete")
 
14
  import json
15
 
16
  # # ─── Third-Party ──────────────────────────────────────────────────────────────
17
+ # from fastapi import FastAPI, Depends, HTTPException, Request, Query, BackgroundTasks
18
  from fastapi.middleware.cors import CORSMiddleware
19
  from fastapi.responses import JSONResponse
20
  from contextlib import asynccontextmanager
 
148
  try:
149
  conn.close()
150
  logger.info(f" β†’ Closed DB: {org_id}")
151
+ except Exception:
152
  pass
153
 
154
  if _vector_db_conn:
155
  try:
156
  _vector_db_conn.close()
157
  logger.info(" β†’ Closed Vector DB")
158
+ except Exception:
159
  pass
160
 
161
  logger.info("βœ… Shutdown complete")