Clear error

Use.objects.get causes undefined variable when using get_user_model
This commit is contained in:
Martin Whitehouse 2022-07-25 03:52:58 +02:00
parent 1468982043
commit 46f8e9d21f
No known key found for this signature in database
GPG Key ID: 3FCE1D3E9DEC09C1

View File

@ -355,7 +355,7 @@ def create_ticket_cc(ticket, cc_list):
user = None user = None
try: try:
user = User.objects.get(email=cced_email) user = User.objects.get(email=cced_email) # @UndefinedVariable
except User.DoesNotExist: except User.DoesNotExist:
pass pass