changeset 887:dd2273617eb7

server (blog): fixes displaying default avatar
author souliane <souliane@mailoo.org>
date Fri, 11 Mar 2016 10:18:59 +0100
parents fe4d8dfaaa65
children 0d719b6a4115
files src/server/blog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/blog.py	Wed Mar 09 21:58:05 2016 +0100
+++ b/src/server/blog.py	Fri Mar 11 10:18:59 2016 +0100
@@ -132,7 +132,7 @@
             return
         log.debug(_(u"Received a new avatar for entity %s") % entity_s)
 
-        url = os.path.join(C.AVATARS_DIR, value)
+        url = os.path.join(C.AVATARS_DIR, value) if value else ""
         self.avatars_cache[entity_s] = url
         try:
             self.waiting_deferreds.pop(entity_s).callback(url)