mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-29 03:13:15 +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
|
# create the ticketcc_string and check whether current user is already
|
||||||
# subscribed
|
# subscribed
|
||||||
username = user.get_username().upper()
|
username = user.get_username().upper()
|
||||||
|
try:
|
||||||
useremail = user.email.upper()
|
useremail = user.email.upper()
|
||||||
|
except AttributeError:
|
||||||
|
useremail = ""
|
||||||
strings_to_check = list()
|
strings_to_check = list()
|
||||||
strings_to_check.append(username)
|
strings_to_check.append(username)
|
||||||
strings_to_check.append(useremail)
|
strings_to_check.append(useremail)
|
||||||
|
Loading…
Reference in New Issue
Block a user