fix bug with logger in BaseBackend.ICON class property
This commit is contained in:
parent
7ecb4ba051
commit
7200618a93
1 changed files with 3 additions and 3 deletions
|
|
@ -140,13 +140,13 @@ class BaseBackend(object):
|
||||||
return self.fget(objtype)
|
return self.fget(objtype)
|
||||||
|
|
||||||
@classprop
|
@classprop
|
||||||
def ICON(self):
|
def ICON(klass):
|
||||||
try:
|
try:
|
||||||
import xdg.IconTheme
|
import xdg.IconTheme
|
||||||
except ImportError:
|
except ImportError:
|
||||||
self.logger.debug(u'Python xdg module was not found. Please install it to read icon files.')
|
getLogger(klass.NAME).debug(u'Python xdg module was not found. Please install it to read icon files.')
|
||||||
else:
|
else:
|
||||||
return xdg.IconTheme.getIconPath(self.NAME)
|
return xdg.IconTheme.getIconPath(klass.NAME)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def browser(self):
|
def browser(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue