From 8fd9fef17748f00af17fdf44c8ff2be0d7712662 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 11 Apr 2023 20:44:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=8A=A8=E6=B5=81=E8=BD=AC?= =?UTF-8?q?=E6=97=B6transition=5Fobj=E4=B8=8D=E8=83=BD=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wf/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)