From a13bdad3d8f01bf4057c896e5171f0cc8ea06b57 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Wed, 13 Feb 2013 21:07:31 +0100 Subject: [PATCH] Wrong exit code returned by the setuptools Flake8Command --- flake8/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8/main.py b/flake8/main.py index e5129f0..79c20e2 100644 --- a/flake8/main.py +++ b/flake8/main.py @@ -91,4 +91,4 @@ else: flake8_style = get_style_guide(config_file=DEFAULT_CONFIG) paths = self.distribution_files() report = flake8_style.check_files(paths) - raise SystemExit(report.get_file_results() > 0) + raise SystemExit(report.total_errors > 0)