diff --git a/apps/wf/tasks.py b/apps/wf/tasks.py index f19934a4..fb134c99 100644 --- a/apps/wf/tasks.py +++ b/apps/wf/tasks.py @@ -69,7 +69,7 @@ def run_task(ticket_id: str, retry_num=1): transition=transition_obj, suggestion=script_result_msg) # 自动流转 - if script_result: + if script_result and transition_obj: from apps.wf.services import WfService WfService.handle_ticket(ticket=ticket, transition=transition_obj, new_ticket_data=ticket.ticket_data, by_task=True)