comparison sat_frontends/quick_frontend/quick_app.py @ 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 56f94936df1e
children e35a265ec174
comparison
equal deleted inserted replaced
2625:a55a14c3cbf4 2626:6ef2b4fa90a5
1221 """ 1221 """
1222 contact_list = self.contact_lists[profile] 1222 contact_list = self.contact_lists[profile]
1223 if ignore_cache: 1223 if ignore_cache:
1224 avatar = None 1224 avatar = None
1225 else: 1225 else:
1226 avatar = contact_list.getCache(entity, "avatar", bare_default=None) 1226 try:
1227 avatar = contact_list.getCache(entity, "avatar", bare_default=None)
1228 except exceptions.NotFound:
1229 avatar = None
1227 if avatar is None: 1230 if avatar is None:
1228 self.bridge.avatarGet( 1231 self.bridge.avatarGet(
1229 unicode(entity), 1232 unicode(entity),
1230 cache_only, 1233 cache_only,
1231 hash_only, 1234 hash_only,