A bare except: clause will catch SystemExit and KeyboardInterrupt exceptions, making it harder to interrupt a program with Control-C, and can disguise other problems. If you want to catch all exceptions that signal program errors, use except Exception: (bare except is equivalent to except BaseException:).
https://peps.python.org/pep-0008/#:~:text=A%20bare%20except%3A%20clause%20will%20catch%20SystemExit%20and%20KeyboardInterrupt%20exceptions