3 ms·
https://docs.python.org/3/library/exceptions.html#KeyboardInterrupt https://docs.python.org/3/library/exceptions.html#KeyboardIn... `KeyboardInterrupt` inherit
by tmarice 5y ago
https://docs.python.org/3/library/exceptions.html#KeyboardInterrupt https://docs.python.org/3/library/exceptions.html#KeyboardIn...
`KeyboardInterrupt` inherits from `BaseException` instead of `Exception` exactly in order to avoid this situation.
- mtlynch 5y agoOh, thanks for the correction. I remember running into this myself, but I must have done: except: