Преглед на файлове

버그 원인 추정

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