mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-25 08:09:12 +01:00
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