mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-13 09:28:14 +01:00
Fix an error when creating a ticket with a submitter email that is shared by multiple users
This commit is contained in:
parent
d7f4ca4137
commit
5b44a3aca6
@ -752,7 +752,7 @@ class Ticket(models.Model):
|
||||
User = get_user_model()
|
||||
try:
|
||||
return User.objects.get(email=self.submitter_email)
|
||||
except User.DoesNotExist:
|
||||
except (User.DoesNotExist, User.MultipleObjectsReturned):
|
||||
return None
|
||||
|
||||
class Meta:
|
||||
|
Loading…
Reference in New Issue
Block a user