Skip to content

fix: replace bare except with Exception in WebSocket connection fallback#15

Closed
haosenwang1018 wants to merge 1 commit intodreamzero0:mainfrom
haosenwang1018:fix/websocket-bare-except
Closed

fix: replace bare except with Exception in WebSocket connection fallback#15
haosenwang1018 wants to merge 1 commit intodreamzero0:mainfrom
haosenwang1018:fix/websocket-bare-except

Conversation

@haosenwang1018
Copy link

Replace bare except: with except Exception: in eval_utils/policy_client.py for the ws:// → wss:// fallback. Bare except catches SystemExit/KeyboardInterrupt, preventing clean shutdown.

The ws:// to wss:// fallback uses bare except which catches
SystemExit and KeyboardInterrupt. Use Exception instead.
@joeljang joeljang closed this Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants