changeset 2626:6ef2b4fa90a5

quick_frontend (QuickApp): fixed getCache handling after changes in QuickContactList
author Goffi <goffi@goffi.org>
date Wed, 27 Jun 2018 22:50:32 +0200
parents a55a14c3cbf4
children 163aab916bcf
files sat_frontends/quick_frontend/quick_app.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_app.py	Wed Jun 27 21:15:34 2018 +0200
+++ b/sat_frontends/quick_frontend/quick_app.py	Wed Jun 27 22:50:32 2018 +0200
@@ -1223,7 +1223,10 @@
         if ignore_cache:
             avatar = None
         else:
-            avatar = contact_list.getCache(entity, "avatar", bare_default=None)
+            try:
+                avatar = contact_list.getCache(entity, "avatar", bare_default=None)
+            except exceptions.NotFound:
+                avatar = None
         if avatar is None:
             self.bridge.avatarGet(
                 unicode(entity),