Do not use bare `except:`.

>Because `except:` catches all exceptions, including `SystemExit`, `KeyboardInterrupt`, and `GeneratorExit` (which is not an error and should not normally be caught by user code), using a bare `except:` is almost never a good idea. In situations where you need to catch all “normal” errors, such as in a framework that runs callbacks, you can catch the base class for all normal exceptions, `Exception`.

https://docs.python.org/3/howto/doanddont.html#except