Skip to content

Commit

Permalink
fix error when attempting to change avatar source
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Sep 1, 2024
1 parent 23cdf28 commit f65d052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/%username/edit/avatar.spt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if request.method == 'POST':

if src not in constants.AVATAR_SOURCES:
raise response.invalid_input(src, 'src', 'body')
if '@' not in email:
if email and '@' not in email:
raise BadEmailAddress(email)

new_avatar_url = participant.update_avatar(src+':', avatar_email=email)
Expand Down

0 comments on commit f65d052

Please sign in to comment.