diff options
Diffstat (limited to 'python/client.py')
| -rw-r--r-- | python/client.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/client.py b/python/client.py index ca24be71..f42f89cf 100644 --- a/python/client.py +++ b/python/client.py @@ -13,7 +13,12 @@ def run(): if rpc.fun == 'generate_scenarios': rpc.args += [ET] logger.info("running: {}, {}".format(rpc.fun, rpc.args)) - rpc() + try: + rpc() + except CalledProcessError: + logger.error("'{}' did not complete".format(rpc.fun)) + else: + logger.info("'{}' completed".format(rpc.fun)) if rpc.fun == "build_portfolios": q.rpush("tasks", str(Rpc("build_scenarios", rpc.args))) if rpc.fun == "build_scenarios": |
