replace sys.exit with return None

This commit is contained in:
William Luke 2021-12-08 15:05:17 +03:00
parent 1cd3d44502
commit 2ead1b0e51

View File

@ -44,7 +44,7 @@ def call(method, *args, **kwargs):
except TimeoutError as e: except TimeoutError as e:
sys.stderr.write( sys.stderr.write(
f"cic_eth.api.{method}({args}, {kwargs}) timed out:\n {e}") f"cic_eth.api.{method}({args}, {kwargs}) timed out:\n {e}")
sys.exit(1) return None
log.debug( log.debug(
f"cic_eth.api.{method}(args={args}, kwargs={kwargs})\n {o}") f"cic_eth.api.{method}(args={args}, kwargs={kwargs})\n {o}")