def _execute(self, target, func):
try:
DBG("Running %s (%s %s)" % (self.func,
str(self.args),
str(self.kwargs)))
DBG(self.desc)
result = func(*self.args, **self.kwargs)
except errors.InvalidMemoryLocation, e:
result = e
except Exception, e:
LOG.error("Exception running RadioJob: %s" % e)
log_exception()
LOG.error("Job Args: %s" % str(self.args))
LOG.error("Job KWArgs: %s" % str(self.kwargs))
LOG.error("Job Called from:%s%s" %
(os.linesep, "".join(self.tb[:-1])))
result = e
if self.cb:
gobject.idle_add(self.cb, result, *self.cb_args)
评论列表
文章目录