From 266775dbf63fbf373d98fe670719e21755849e10 Mon Sep 17 00:00:00 2001 From: Mike Hoolehan Date: Wed, 18 Mar 2020 09:11:48 +0200 Subject: [PATCH] Update get_email.py --- helpdesk/management/commands/get_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/management/commands/get_email.py b/helpdesk/management/commands/get_email.py index 273b7fd5..ad127e78 100755 --- a/helpdesk/management/commands/get_email.py +++ b/helpdesk/management/commands/get_email.py @@ -551,7 +551,7 @@ def ticket_from_message(message, queue, logger): # copy email to all those CC'd to this particular ticket for cc in t.ticketcc_set.all(): # don't duplicate email to assignee - if t.assigned_to.email != cc.email_address: + if not t.assigned_to or (t.assigned_to.email != cc.email_address): send_templated_mail( 'updated_cc', context,