fix: 恢复format_exc()调用, 框架已预加载

This commit is contained in:
yumoqing 2026-05-30 00:43:05 +08:00
parent fadde32ecc
commit f8de29d8f2

View File

@ -31,6 +31,7 @@ try:
except Exception as e: except Exception as e:
debug(f"[rl_callback] exception: {e}") debug(f"[rl_callback] exception: {e}")
print(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)}"}) return json.dumps({"code": "500", "message": f"Internal error: {str(e)}"})
if result.get("success"): if result.get("success"):