Skip to content

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

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

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.
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.

1 participant