diff src/server/blog.py @ 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 2b091322c6cb
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)