__init__.py 文件源码

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

项目:uchan 作者: Floens 项目源码 文件源码
def render_error(user_message, code=400, with_retry=False):
    if request.is_xhr:
        xhr_response = {
            'error': True
        }

        if user_message:
            xhr_response['message'] = page_formatting(user_message)

        return jsonify(xhr_response), code
    else:
        return render_template('error.html', message=user_message, with_retry=with_retry), code
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号