Selaa lähdekoodia

다시 수정

잉여개발기 1 vuosi sitten
vanhempi
sitoutus
44ff832bbd
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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