diff --git a/codespell_lib/__main__.py b/codespell_lib/__main__.py index e0dc149ae2..c93f3972b9 100644 --- a/codespell_lib/__main__.py +++ b/codespell_lib/__main__.py @@ -5,7 +5,5 @@ if __name__ == "__main__": try: sys.exit(_script_main()) - except BrokenPipeError: - pass - except KeyboardInterrupt: + except (KeyboardInterrupt, BrokenPipeError): pass