load_iconset return {} if path doesn't exists

This commit is contained in:
Yann Leboulanger 2005-12-14 18:10:55 +00:00
parent da873080af
commit 8607a9ecad
1 changed files with 1 additions and 4 deletions

View File

@ -2175,10 +2175,7 @@ _('If "%s" accepts this request you will know his or her status.') %jid)
if not iconset:
iconset = 'dcraven'
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '32x32')
if os.path.exists(path):
self.jabber_state_images['32'] = self.load_iconset(path)
else:
self.jabber_state_images['32'] = {}
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
self.jabber_state_images['16'] = self.load_iconset(path)