fix: 恢复format_exc()调用, 框架已预加载
This commit is contained in:
parent
fadde32ecc
commit
f8de29d8f2
@ -31,6 +31,7 @@ try:
|
||||
except Exception as e:
|
||||
debug(f"[rl_callback] exception: {e}")
|
||||
print(f"[rl_callback] exception: {e}")
|
||||
print(format_exc())
|
||||
return json.dumps({"code": "500", "message": f"Internal error: {str(e)}"})
|
||||
|
||||
if result.get("success"):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user