Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed docstring. This fixes #45

  • Loading branch information...
commit 6c095deda51efb34cd18bd23411ebd6f2a0cdfe0 1 parent ef0dc18
Armin Ronacher authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 flask.py
4 flask.py
View
@@ -1004,14 +1004,14 @@ def errorhandler(self, code):
error code. Example::
@app.errorhandler(404)
- def page_not_found():
+ def page_not_found(error):
return 'This page does not exist', 404
You can also register a function as error handler without using
the :meth:`errorhandler` decorator. The following example is
equivalent to the one above::
- def page_not_found():
+ def page_not_found(error):
return 'This page does not exist', 404
app.error_handlers[404] = page_not_found
Please sign in to comment.
Something went wrong with that request. Please try again.