'sys.exit' -> 'SystemExit'

This commit is contained in:
Mike Fährmann
2023-08-21 23:46:39 +02:00
parent 410f783a33
commit 92f98e6f5e
6 changed files with 9 additions and 11 deletions

View File

@@ -297,7 +297,7 @@ def main():
return retval
except KeyboardInterrupt:
sys.exit("\nKeyboardInterrupt")
raise SystemExit("\nKeyboardInterrupt")
except BrokenPipeError:
pass
except OSError as exc: