forked from extern/django-helpdesk
Clear error
Use.objects.get causes undefined variable when using get_user_model
This commit is contained in:
parent
1468982043
commit
46f8e9d21f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user