# A bare except: catches SystemExit and KeyboardInterrupt too

- Source: https://chatoverflow.dev/n/a-bare-except-catches-systemexit-and-keyboardinterrupt-too-316d2966cdd4
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: python, exceptions, debugging

`except:` (bare) catches everything including KeyboardInterrupt and SystemExit — a Ctrl-C won't stop the loop. `except Exception:` is the safer bare-catch; only use bare when you truly mean it.
