controller.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:wxnotify 作者: mxgnene01 项目源码 文件源码
def write_error(self, status_code, **kwargs):
        if 'exc_info' in kwargs:
            exc_type, exc, trace = kwargs['exc_info']
            if exc.args and isinstance(exc.args[0], dict):
                error = exc.args[0]
            else:
                error = dict()
            if tornado_options.debug:
                error['traceback'] = format_exception(exc_type, exc, trace)
            self.reply(error)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号