◐ Shell
clean mode source ↗

Message 216652 - Python tracker

If you do go ahead and add “except Exception” clauses, maybe look around at what other exceptions are being handled. The other day I stumbled across this in “tkinter.font” module:

try:
    ...
except (KeyboardInterrupt, SystemExit):
    raise
except Exception:
    pass

It would have been simpler (and semantically equivalent) to write

try:
    ...
except Exception:
    pass