Skip to content

Commit

Permalink
Failsafe avatar helper
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed May 27, 2015
1 parent 14a94e8 commit 1c19abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udata/frontend/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def avatar(user, size, classes=''):
<img src="{avatar_url}" class="avatar" width="{size}" height="{size}"/>
</a>
'''.format(
title=user.fullname,
title=getattr(user, 'fullname', _('Anonymous user')),
url=url_for('users.show', user=user),
size=size,
avatar_url=avatar_url(user, size),
Expand Down

0 comments on commit 1c19abc

Please sign in to comment.