From 18420fbf56a939fff615ce3272f26767a370fd10 Mon Sep 17 00:00:00 2001 From: Will Sheldon <114631109+wssheldon@users.noreply.github.com> Date: Wed, 6 Dec 2023 10:14:02 -0800 Subject: [PATCH] Resolve unreferenced conversation variable in no target conditional case --- src/dispatch/conversation/flows.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dispatch/conversation/flows.py b/src/dispatch/conversation/flows.py index dadba50ff470..f7f175a84012 100644 --- a/src/dispatch/conversation/flows.py +++ b/src/dispatch/conversation/flows.py @@ -36,6 +36,8 @@ def create_case_conversation(case: Case, conversation_target: str, db_session: S if not conversation_target: conversation_target = case.case_type.conversation_target + conversation = None + if conversation_target: try: conversation = plugin.instance.create_threaded(