Skip to content

fix: replace 8 bare excepts with except Exception across 4 files#65

Open
haosenwang1018 wants to merge 1 commit intodexmal:mainfrom
haosenwang1018:fix/bare-excepts
Open

fix: replace 8 bare excepts with except Exception across 4 files#65
haosenwang1018 wants to merge 1 commit intodexmal:mainfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link

Replace bare except: with except Exception: across 4 files (8 sites).

Why: Bare except: catches BaseException including KeyboardInterrupt and SystemExit, which can prevent clean shutdown during training or hardware communication. except Exception: preserves all fallback behavior.

Files: navila_exp.py (4), rl_trainer.py (1), bridge_server.py (1), convert_so101_to_dexdata.py (1)

- navila_exp.py (4): experiment error handling
- rl_trainer.py (1): training loop fallback
- bridge_server.py (1): hardware communication
- convert_so101_to_dexdata.py (1): data conversion
- convert_lerobot_to_dexdata.py (1): data conversion
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