diff options
| author | bozokopic <bozo.kopic@gmail.com> | 2018-04-16 17:10:27 +0200 |
|---|---|---|
| committer | bozokopic <bozo.kopic@gmail.com> | 2018-04-16 17:10:27 +0200 |
| commit | 583afc9fe5e98ad742343d345054b76ffddc8075 (patch) | |
| tree | cda07f1821a46b0ce6a688b8cd609562faa47972 /src_py | |
| parent | bb67223abd3d4a5c3654393b4a962daae0588741 (diff) | |
WIP web frontend
Diffstat (limited to 'src_py')
| -rw-r--r-- | src_py/opcut/server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src_py/opcut/server.py b/src_py/opcut/server.py index c67279f..02fc161 100644 --- a/src_py/opcut/server.py +++ b/src_py/opcut/server.py @@ -57,7 +57,7 @@ async def _calculate_handler(executor, request): result_json_data = common.result_to_json_data(result) except asyncio.CancelledError: raise - except Exception: + except Exception as e: result_json_data = None return aiohttp.web.json_response({'result': result_json_data}) @@ -73,7 +73,7 @@ async def _generate_output_handler(executor, request): output_json_data = base64.b64encode(output).decode('utf-8') except asyncio.CancelledError: raise - except Exception: + except Exception as e: output_json_data = None return aiohttp.web.json_response({'data': output_json_data}) |
