add debug if xdg is not installed

This commit is contained in:
Christophe Benz 2010-08-12 21:00:19 +02:00
commit b15c4f2f86

View file

@ -73,7 +73,7 @@ class Backend(object):
try: try:
import xdg.IconTheme import xdg.IconTheme
except ImportError: except ImportError:
pass debug(u'Python xdg module was not found. Please install it to read icon files.')
else: else:
self.klass.ICON = xdg.IconTheme.getIconPath(self.klass.NAME) self.klass.ICON = xdg.IconTheme.getIconPath(self.klass.NAME)
return self.klass.ICON return self.klass.ICON