Repository navigation
fix(wasm_build): explicit KeyboardInterrupt re-raise (meta #2580 D2) - #2586
Conversation
…ndler The try/except around ensure_emscripten_available() catches Exception broadly. While KeyboardInterrupt is not Exception (so Ctrl-C does propagate in practice), the repo guideline is to make the re-raise explicit. Adds `except KeyboardInterrupt: raise` before the existing `except Exception as e:` handler. Addresses CodeRabbit finding D2 from meta #2580 (originally #2490).
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR adds explicit ChangesKeyboardInterrupt Signal Handling
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
ci/wasm_build.py_ensure_emscripten_wasm_ld_patchwrapsensure_emscripten_available()intry: ... except Exception as e: .... WhileKeyboardInterruptis notException(so Ctrl-C does propagate), the repo guideline is to make the re-raise explicit. Added anexcept KeyboardInterrupt: raiseclause ahead of the broad handler.Addresses meta-issue #2580 finding D2 (originally CodeRabbit on #2490 — #2490 (comment)).
Test plan
bash lintSummary by CodeRabbit