Why is a bare 'except:' clause considered bad practice?
- A It is slower
- B It catches KeyboardInterrupt and SystemExit, and hides genuine programming errors
- C It is invalid syntax in Python 3
- D It only catches the first exception
Answer
It catches KeyboardInterrupt and SystemExit, and hides genuine programming errors
Use 'except Exception:' if a broad catch is genuinely needed, and catch the narrowest applicable exception wherever possible.





