From 1a68a7db5f00341667cc3fd18acac0bbaf9c13d6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 21 Feb 2016 11:45:17 +0200 Subject: Add MessageThread class --- setup.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 1895664..5630649 100644 --- a/setup.py +++ b/setup.py @@ -55,17 +55,20 @@ class Check(Command): self.set_all_options(True) def run(self): - if self.unit_tests: - self.run_unit_tests() + try: + if self.unit_tests: + self.run_unit_tests() - if self.yarns: - self.run_yarns() + if self.yarns: + self.run_yarns() - if self.pep8 and self.command_is_available('pep8'): - self.run_pep8() + if self.pep8 and self.command_is_available('pep8'): + self.run_pep8() - if self.pylint and self.command_is_available('pylint'): - self.run_pylint() + if self.pylint and self.command_is_available('pylint'): + self.run_pylint() + except cliapp.AppException: + raise SystemExit(1) def run_unit_tests(self): cliapp.runcmd( -- cgit v1.2.1