浏览代码

버그 원인 추정

https://github.com/openNAMU/openNAMU/issues/2338
잉여개발기 1 年之前
父节点
当前提交
93e6fca25f
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      route/tool/func.py

+ 6 - 0
route/tool/func.py

@@ -150,6 +150,9 @@ def python_to_golang_sync(func_name, other_set = {}):
 
         time.sleep(0.01)
 
+    if data == '':
+        data = '{}'
+
     return data
 
 async def python_to_golang(func_name, other_set = {}):
@@ -190,6 +193,9 @@ async def python_to_golang(func_name, other_set = {}):
 
         await asyncio.sleep(0.01)
 
+    if data == '':
+        data = '{}'
+
     return data
 
 # Func-init