[blarz] Check is ~/.gajim/iconsets/transports exists before using it. See #3390 and [8555].
This commit is contained in:
parent
2419bd509c
commit
96446f2a9f
|
@ -4439,8 +4439,9 @@ class RosterWindow:
|
||||||
# standard transport iconsets are loaded one time in init()
|
# standard transport iconsets are loaded one time in init()
|
||||||
t_path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports')
|
t_path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports')
|
||||||
folders = os.listdir(t_path)
|
folders = os.listdir(t_path)
|
||||||
t_path = os.path.join(gajim.MY_ICONSETS_PATH, 'transports')
|
if os.path.isdir(os.path.join(gajim.MY_ICONSETS_PATH, 'transports')):
|
||||||
folders += os.listdir(t_path)
|
t_path = os.path.join(gajim.MY_ICONSETS_PATH, 'transports')
|
||||||
|
folders += os.listdir(t_path)
|
||||||
for transport in folders:
|
for transport in folders:
|
||||||
if transport == '.svn':
|
if transport == '.svn':
|
||||||
continue
|
continue
|
||||||
|
@ -5149,8 +5150,9 @@ class RosterWindow:
|
||||||
|
|
||||||
path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports')
|
path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports')
|
||||||
folders = os.listdir(path)
|
folders = os.listdir(path)
|
||||||
path = os.path.join(gajim.MY_ICONSETS_PATH, 'transports')
|
if os.path.isdir(os.path.join(gajim.MY_ICONSETS_PATH, 'transports')):
|
||||||
folders += os.listdir(path)
|
path = os.path.join(gajim.MY_ICONSETS_PATH, 'transports')
|
||||||
|
folders += os.listdir(path)
|
||||||
for transport in folders:
|
for transport in folders:
|
||||||
if transport == '.svn':
|
if transport == '.svn':
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue