diff --git a/src/antsibull_changelog/cli.py b/src/antsibull_changelog/cli.py index cd260588..3b5ded5b 100644 --- a/src/antsibull_changelog/cli.py +++ b/src/antsibull_changelog/cli.py @@ -323,7 +323,7 @@ def run(args: list[str]) -> int: except SystemExit as e: # All cases that sys.exit is called directly or indirectly in the above # code (that we are aware of) always return an int. - return cast(int, e.code) # pyre-ignore[22] + return cast(int, e.code) except Exception: # pylint: disable=broad-except if verbosity > 0: traceback.print_exc()