def handle_with_logging(self):
def process(processors):
try:
if processors:
p, processors = processors[0], processors[1:]
return p(lambda: process(processors))
else:
return self.handle()
except web.HTTPError as e:
logger.error("Web error: %s" % e)
raise
except (KeyboardInterrupt, SystemExit):
raise
except Exception as e:
logger.critical("Unhandled exception raised",
traceback=traceback.format_exc())
raise self.internalerror()
# processors must be applied in the resvere order. (??)
return process(self.processors)
# monkeypatch to allow error capturing
federer.py 文件源码
python
阅读 14
收藏 0
点赞 0
评论 0
评论列表
文章目录