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:
@@ -1688,7 +1688,7 @@ def process_file(
|
||||
VECTOR_DB_CLIENT.delete_collection(
|
||||
collection_name=f"file-{file.id}"
|
||||
)
|
||||
except:
|
||||
except Exception:
|
||||
# Audio file upload pipeline
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user