Unbuffered.

This commit is contained in:
retoor 2025-01-31 12:45:42 +01:00
parent 780c178d95
commit cc3b896d2c

View File

@ -123,6 +123,7 @@ class RPCView(BaseView):
result = await method(*args) result = await method(*args)
except Exception as ex: except Exception as ex:
result = dict({"exception":str(ex),"traceback":traceback.format_exc()}) result = dict({"exception":str(ex),"traceback":traceback.format_exc()})
print(result,flush=True)
#dict(error=ex=str(ex),traceback=traceback.format_exc()) #dict(error=ex=str(ex),traceback=traceback.format_exc())
await self.ws.send_json({"callId":call_id,"success":True,"data":result}) await self.ws.send_json({"callId":call_id,"success":True,"data":result})
except Exception as ex: except Exception as ex: