From 7220394277cac500e759ee112444077332bba51f Mon Sep 17 00:00:00 2001 From: Marc Vilanova <39573146+mvilanova@users.noreply.github.com> Date: Fri, 18 Aug 2023 10:43:40 -0700 Subject: [PATCH] Checks if the incident tactical group exists before adding it to the case storage (#3707) --- src/dispatch/case/flows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/case/flows.py b/src/dispatch/case/flows.py index 18731f5d27c2..b655651b5ce7 100644 --- a/src/dispatch/case/flows.py +++ b/src/dispatch/case/flows.py @@ -593,7 +593,7 @@ def case_to_incident_escalate_flow( case_id=case.id, ) - if case.storage: + if case.storage and incident.tactical_group: # we add the incident's tactical group to the case's storage folder # to allow incident participants to access the case's artifacts in the folder storage_members = [incident.tactical_group.email]