We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried both handlers:
@app.errorhandler(404) def page_not_found(e): return render_template('/error_handlers/404.html'), 404
and
def not_found(): return render_template('/error_handlers/404.html'), 404 app.register_error_handler(404, not_found)
None of these seem to work on Quart. I tried the same code on Flask, which seems to work. You can test this simple code here:
from quart import Quart app = Quart(__name__) @app.errorhandler(404) def page_not_found(e): return 'Not found lalala', 404 if __name__ == '__main__': app.run()
from flask import Flask app = Flask(__name__) @app.errorhandler(404) def page_not_found(e): return 'Not found lalala', 404 if __name__ == '__main__': app.run()
$> python test.py
What am I doing wrong?
Thanks.
The text was updated successfully, but these errors were encountered:
See https://gitlab.com/pgjones/quart/issues/54 for the discussion and (hopeful) fix to this bug.
Sorry, something went wrong.
No branches or pull requests
I tried both handlers:
and
None of these seem to work on Quart. I tried the same code on Flask, which seems to work. You can test this simple code here:
What am I doing wrong?
Thanks.
The text was updated successfully, but these errors were encountered: