quick frontend (app): show an info log if avatar is not found instead of raising exception
fix 288
This commit is contained in:
parent
d2064fc175
commit
cf83f04af4
1 changed files with 6 additions and 2 deletions
|
|
@ -1346,8 +1346,12 @@ class QuickApp(object):
|
|||
contact_list.setCache(entity, "avatar", path)
|
||||
self.callListeners("avatar", entity, path, profile=profile)
|
||||
|
||||
def _avatarGetEb(self, failure, entity, contact_list):
|
||||
log.warning(u"Can't get avatar: {}".format(failure))
|
||||
def _avatarGetEb(self, failure_, entity, contact_list):
|
||||
# FIXME: bridge needs a proper error handling
|
||||
if "NotFound" in unicode(failure_):
|
||||
log.info(u"No avatar found for {entity}".format(entity=entity))
|
||||
else:
|
||||
log.warning(u"Can't get avatar: {}".format(failure_))
|
||||
contact_list.setCache(entity, "avatar", self.getDefaultAvatar(entity))
|
||||
|
||||
def getAvatar(
|
||||
|
|
|
|||
Loading…
Reference in a new issue