From f42b56cdc38ec6052b9252f02f8c38dda801aed8 Mon Sep 17 00:00:00 2001 From: Richard Fairthorne Date: Wed, 9 Mar 2016 15:01:38 -0500 Subject: [PATCH] Fix error messages desribed at https://github.com/amperser/proselint/issues/238 --- proselint/command_line.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proselint/command_line.py b/proselint/command_line.py index b5001a293..a3ba3f333 100644 --- a/proselint/command_line.py +++ b/proselint/command_line.py @@ -193,4 +193,7 @@ def proselint(files=None, version=None, initialize=None, clean=None, show_errors(click.format_filename(f.name), errors, json) if __name__ == '__main__': - proselint() + try: + proselint() + except SystemExit: + os._exit(0)