Dont fail when IconTheme is not available

This is needed for tests to work
This commit is contained in:
Philipp Hörist 2018-11-18 12:47:50 +01:00
parent d13baed80f
commit 8be5562b92
1 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ from gajim.common import i18n
from gajim.common.i18n import _
_icon_theme = Gtk.IconTheme.get_default()
if _icon_theme is not None:
_icon_theme.append_search_path(configpaths.get('ICONS'))
log = logging.getLogger('gajim.gtk.util')