Fix an error

remotes/origin/enhancement/email-actions
David Barragán Merino 2014-07-23 12:40:28 +02:00
parent b6079a6ff9
commit d2de2d44a4
1 changed files with 3 additions and 1 deletions

View File

@ -59,4 +59,6 @@ def get_photo_url(photo):
def get_photo_or_gravatar_url(user): def get_photo_or_gravatar_url(user):
"""Get the user's photo/gravatar url.""" """Get the user's photo/gravatar url."""
return get_photo_url(user.photo) if user.photo else get_gravatar_url(user.email) if user:
return get_photo_url(user.photo) if user.photo else get_gravatar_url(user.email)
return ""