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:
@@ -179,7 +179,7 @@ async def set_tool_servers_config(
|
||||
|
||||
try:
|
||||
request.app.state.oauth_client_manager.remove_client(client_key)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Set new tool server connections
|
||||
|
||||
Reference in New Issue
Block a user