From 5c4c30c379b030b135f801cf35db1a7c630b7b05 Mon Sep 17 00:00:00 2001 From: Renato Covarrubias Date: Thu, 4 Jan 2018 17:02:27 -0300 Subject: [PATCH] SystemExit are ignored --- docker_check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker_check.py b/docker_check.py index 646eb21..73dc500 100755 --- a/docker_check.py +++ b/docker_check.py @@ -197,6 +197,8 @@ def main(): if __name__ == '__main__': try: main() + except SystemExit: + pass except BaseException as exc: EXC_TYPE, _, EXC_TRACEBACK = sys.exc_info() FNAME = os.path.split(EXC_TRACEBACK.tb_frame.f_code.co_filename)[1]