summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--isort/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/isort/main.py b/isort/main.py
index 28e8974a..5b848c7e 100644
--- a/isort/main.py
+++ b/isort/main.py
@@ -169,7 +169,7 @@ class ISortCommand(setuptools.Command):
except IOError as e:
print("WARNING: Unable to parse file {0} due to {1}".format(python_file, e))
if wrong_sorted_files:
- exit(1)
+ sys.exit(1)
def parse_args(argv=None):
@@ -353,7 +353,7 @@ def main(argv=None):
except IOError as e:
print("WARNING: Unable to parse file {0} due to {1}".format(file_name, e))
if wrong_sorted_files:
- exit(1)
+ sys.exit(1)
num_skipped += len(skipped)
if num_skipped and not arguments.get('quiet', False):