잉여개발기 преди 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