replace sys.exit with return None
This commit is contained in:
parent
1cd3d44502
commit
2ead1b0e51
@ -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}")
|
||||||
|
Loading…
Reference in New Issue
Block a user