From 8607a9ecad8cd99a4c5ddd5ff15a5a4e325a0d04 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 14 Dec 2005 18:10:55 +0000
Subject: [PATCH] load_iconset return {} if path doesn't exists

---
 src/roster_window.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/roster_window.py b/src/roster_window.py
index 7f3705237e..8d60d027bc 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -2175,10 +2175,7 @@ def make_jabber_state_images(self):
 		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'] = {}
+		self.jabber_state_images['32'] = self.load_iconset(path)
 
 		path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
 		self.jabber_state_images['16'] = self.load_iconset(path)
-- 
GitLab