bug修复

This commit is contained in:
曹前明 2022-07-15 11:09:06 +08:00
parent 55a2028451
commit b3cc5e8057
2 changed files with 4 additions and 2 deletions

View File

@ -46,4 +46,6 @@ def custom_exception_hander(exc, context):
status = 400
return Response(data, status=status, headers=headers)
args = (request_id, traceback.format_exc())
myLogger.error(f"{args[0]}-{args[1]}")
err_detail = f"{args[0]}-{args[1]}"
myLogger.error(err_detail)
return Response(data={'err_code': 'server_error', 'err_detail': None, 'err_msg': '服务器错误'}, status=500)

View File

@ -413,4 +413,4 @@ class WfService(object):
# 如果目标状态是脚本则异步执行
if state.participant_type == State.PARTICIPANT_TYPE_ROBOT:
run_task.delay(ticket_id=ticket.id, script_str=state.participant)
run_task.delay(ticket_id=ticket.id)