def logException(self, e, txt=''):
''' Logs an Exception as Error Message '''
try:
if txt:
if isinstance(txt, unicode):
txt = unidecode(txt)
xbmc.log(b"[%s] %s\n%s" % (self.pluginName, txt, str(e)), level=xbmc.LOGERROR)
logging.exception(str(e))
except:
pass
评论列表
文章目录