From 8ba0f5d17513cb3c030a7d3b1465d9dcd5afd62a Mon Sep 17 00:00:00 2001 From: El Acheche ANIS Date: Mon, 4 Jun 2018 15:41:31 +0100 Subject: [PATCH] Should fix #8 --- docker_check.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docker_check.py b/docker_check.py index fdbc510..27da226 100755 --- a/docker_check.py +++ b/docker_check.py @@ -199,11 +199,6 @@ 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] - print("UNKNOWN: %s Exception \"%s\" in %s line %s" % ( - EXC_TYPE.__name__, exc, FNAME, EXC_TRACEBACK.tb_lineno)) + except Exception as e: + print(e) sys.exit(3)