Skip to content

Commit

Permalink
Resolve unreferenced conversation variable in no target conditional case
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Dec 6, 2023
1 parent e30ede6 commit 18420fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dispatch/conversation/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 18420fb

Please sign in to comment.