mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-26 00:29:38 +01:00
Don't crash if use email is None
This commit is contained in:
parent
df05ce2b1f
commit
f840136e1e
@ -398,7 +398,10 @@ def return_ticketccstring_and_show_subscribe(user, ticket):
|
||||
# create the ticketcc_string and check whether current user is already
|
||||
# subscribed
|
||||
username = user.get_username().upper()
|
||||
useremail = user.email.upper()
|
||||
try:
|
||||
useremail = user.email.upper()
|
||||
except AttributeError:
|
||||
useremail = ""
|
||||
strings_to_check = list()
|
||||
strings_to_check.append(username)
|
||||
strings_to_check.append(useremail)
|
||||
|
Loading…
Reference in New Issue
Block a user