load_iconset return {} if path doesn't exists
This commit is contained in:
parent
da873080af
commit
8607a9ecad
|
@ -2175,10 +2175,7 @@ _('If "%s" accepts this request you will know his or her status.') %jid)
|
||||||
if not iconset:
|
if not iconset:
|
||||||
iconset = 'dcraven'
|
iconset = 'dcraven'
|
||||||
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '32x32')
|
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '32x32')
|
||||||
if os.path.exists(path):
|
|
||||||
self.jabber_state_images['32'] = self.load_iconset(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')
|
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
|
||||||
self.jabber_state_images['16'] = self.load_iconset(path)
|
self.jabber_state_images['16'] = self.load_iconset(path)
|
||||||
|
|
Loading…
Reference in New Issue