def _setup(self):
if self.skip: # Don't bother
return
for op, arg in list(self.funcs.items()):
try:
op(self, arg)
except ConfigurationError as err:
_txt = "Configuration error: {}".format(err)
self.conv.events.store(EV_EXCEPTION, _txt)
raise cherrypy.HTTPError(message=_txt)
except Exception as err:
_txt = "Can't do {}".format(op)
self.conv.events.store(EV_EXCEPTION, _txt)
raise cherrypy.HTTPError(message=_txt)
# self.conv.events.store(EV_OP_ARGS, self.op_args)
评论列表
文章目录