From e82177d17be396d02c30f55dc70b1a014e3388dd Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 18 Aug 2021 03:04:01 +0000 Subject: [PATCH] not working --- src/cli/superscript.py | 2 +- src/cli/superscript.spec | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/superscript.py b/src/cli/superscript.py index de7f637..800ddfc 100644 --- a/src/cli/superscript.py +++ b/src/cli/superscript.py @@ -371,7 +371,7 @@ async def main_lin(socket, path): break except Exception as e: await socket.send("encountered an exception while running") - print(e) + await socket.send(str(e)) loop_exit_code = 1 break diff --git a/src/cli/superscript.spec b/src/cli/superscript.spec index 04cafa7..7664ae0 100644 --- a/src/cli/superscript.spec +++ b/src/cli/superscript.spec @@ -10,6 +10,8 @@ a = Analysis(['superscript.py'], "dnspython", "sklearn.utils._weight_vector", "requests", + "websockets.legacy", + "websockets.legacy.server", ], hookspath=[], runtime_hooks=[],