From 96446f2a9f3bda35da1d8687c72075f2bf43dbdd Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 22 Aug 2007 23:40:44 +0000 Subject: [PATCH] [blarz] Check is ~/.gajim/iconsets/transports exists before using it. See #3390 and [8555]. --- src/roster_window.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 9544c8ce7..a310f2518 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -4439,8 +4439,9 @@ class RosterWindow: # standard transport iconsets are loaded one time in init() t_path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports') folders = os.listdir(t_path) - t_path = os.path.join(gajim.MY_ICONSETS_PATH, 'transports') - folders += os.listdir(t_path) + if os.path.isdir(os.path.join(gajim.MY_ICONSETS_PATH, 'transports')): + t_path = os.path.join(gajim.MY_ICONSETS_PATH, 'transports') + folders += os.listdir(t_path) for transport in folders: if transport == '.svn': continue @@ -5149,8 +5150,9 @@ class RosterWindow: path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports') folders = os.listdir(path) - path = os.path.join(gajim.MY_ICONSETS_PATH, 'transports') - folders += os.listdir(path) + if os.path.isdir(os.path.join(gajim.MY_ICONSETS_PATH, 'transports')): + path = os.path.join(gajim.MY_ICONSETS_PATH, 'transports') + folders += os.listdir(path) for transport in folders: if transport == '.svn': continue