浏览代码

다시 수정

잉여개발기 1 年之前
父节点
当前提交
44ff832bbd
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      route/tool/func.py

+ 1 - 2
route/tool/func.py

@@ -169,8 +169,7 @@ async def python_to_golang(func_name, other_set = {}):
                 data = await res.json()
 
                 if "response" in data and data["response"] == "error":
-                    print(data)
-                    raise
+                    raise Exception(f"API returned error: {data}")
                 else:
                     return data