From 8be5562b92f06047dbfa17c48f9abc29f13ce199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 18 Nov 2018 12:47:50 +0100 Subject: [PATCH] Dont fail when IconTheme is not available This is needed for tests to work --- gajim/gtk/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gajim/gtk/util.py b/gajim/gtk/util.py index 11b9b445b..ff9367085 100644 --- a/gajim/gtk/util.py +++ b/gajim/gtk/util.py @@ -32,7 +32,8 @@ from gajim.common import i18n from gajim.common.i18n import _ _icon_theme = Gtk.IconTheme.get_default() -_icon_theme.append_search_path(configpaths.get('ICONS')) +if _icon_theme is not None: + _icon_theme.append_search_path(configpaths.get('ICONS')) log = logging.getLogger('gajim.gtk.util')