Skip to content

fix: avoid bare except in ga.py (E722) - #812

Open
fstark96 wants to merge 1 commit into
lsdefine:mainfrom
fstark96:flare-fix-bare-except
Open

fstark96 wants to merge 1 commit into
lsdefine:mainfrom
fstark96:flare-fix-bare-except

Conversation

@fstark96

Copy link
Copy Markdown

Narrows 5x bare \except:\ to \except Exception\ in ga.py (safe_print, code_run log loop, log_memory_access, JS-write fallback, plan-completion check). Bare except also catches KeyboardInterrupt/SystemExit; all five sites are best-effort fallbacks where propagating those is correct. Verified with py_compile. Same fix class as anthropics/skills#1775 (LGTM). Found via FLARE symbiosis trainer.

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