You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some except clauses catch overly broad exception types (e.g., bare except: or except Exception:), which can accidentally swallow important errors like KeyboardInterrupt or SystemExit.
Bug Report
Description
Some
exceptclauses catch overly broad exception types (e.g., bareexcept:orexcept Exception:), which can accidentally swallow important errors likeKeyboardInterruptorSystemExit.Example
Expected Behavior
Exception handlers should catch only the specific exceptions they know how to handle.
Impact
Suggested Fix
Replace broad
exceptclauses with specific exception types wherever possible.