fix: replace bare except with except Exception (#22473)

Replace bare except clauses with except Exception to follow Python best practices and avoid catching unexpected system exceptions like KeyboardInterrupt and SystemExit.
This commit is contained in:
Ethan T.
2026-03-15 17:48:23 -05:00
committed by GitHub
parent bcd313c363
commit a229f9ea42
9 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ async def process_pipeline_inlet_filter(request, payload, user, models):
try:
urlIdx = int(urlIdx)
except:
except Exception:
continue
url = request.app.state.config.OPENAI_API_BASE_URLS[urlIdx]
@@ -123,7 +123,7 @@ async def process_pipeline_outlet_filter(request, payload, user, models):
try:
urlIdx = int(urlIdx)
except:
except Exception:
continue
url = request.app.state.config.OPENAI_API_BASE_URLS[urlIdx]