From 73f3bbe836fff38b9922b9ec535045253f7753ac Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 3 May 2021 11:26:11 +0300 Subject: project.utils: don't print fatal exception twice --- project/utils.py | 2 +- tools/project-clang-format.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project/utils.py b/project/utils.py index 06fff27..711db97 100644 --- a/project/utils.py +++ b/project/utils.py @@ -34,7 +34,7 @@ def setup_logging(): yield except Exception as e: logging.exception(e) - raise + sys.exit(1) @contextmanager diff --git a/tools/project-clang-format.py b/tools/project-clang-format.py index c8fde49..08d5987 100755 --- a/tools/project-clang-format.py +++ b/tools/project-clang-format.py @@ -31,7 +31,7 @@ def setup_logging(): yield except Exception as e: logging.exception(e) - raise + sys.exit(1) @contextmanager -- cgit v1.2.3