Closed kaczmarj closed 1 year ago
A bare except will catch KeyboardInterrupt and SystemExit, making it hard to stop the program with control+C. Using except Exception will catch all other exceptions.
except
KeyboardInterrupt
SystemExit
except Exception
A bare
except
will catchKeyboardInterrupt
andSystemExit
, making it hard to stop the program with control+C. Usingexcept Exception
will catch all other exceptions.