From 2ead1b0e51ba0dfc4c204e4b8e5af7ada0fd83d0 Mon Sep 17 00:00:00 2001 From: William Luke Date: Wed, 8 Dec 2021 15:05:17 +0300 Subject: [PATCH] replace sys.exit with return None --- apps/cic-eth/cic_eth/server/celery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cic-eth/cic_eth/server/celery.py b/apps/cic-eth/cic_eth/server/celery.py index 847f032b..79bf7446 100644 --- a/apps/cic-eth/cic_eth/server/celery.py +++ b/apps/cic-eth/cic_eth/server/celery.py @@ -44,7 +44,7 @@ def call(method, *args, **kwargs): except TimeoutError as e: sys.stderr.write( f"cic_eth.api.{method}({args}, {kwargs}) timed out:\n {e}") - sys.exit(1) + return None log.debug( f"cic_eth.api.{method}(args={args}, kwargs={kwargs})\n {o}")