From 46f8e9d21f07c6282f60baac884ef1658dadf26e Mon Sep 17 00:00:00 2001 From: Martin Whitehouse Date: Mon, 25 Jul 2022 03:52:58 +0200 Subject: [PATCH] Clear error Use.objects.get causes undefined variable when using get_user_model --- helpdesk/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/email.py b/helpdesk/email.py index 60e476a9..1a0b7d50 100644 --- a/helpdesk/email.py +++ b/helpdesk/email.py @@ -355,7 +355,7 @@ def create_ticket_cc(ticket, cc_list): user = None try: - user = User.objects.get(email=cced_email) + user = User.objects.get(email=cced_email) # @UndefinedVariable except User.DoesNotExist: pass