From 6c095deda51efb34cd18bd23411ebd6f2a0cdfe0 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 25 May 2010 08:17:55 +0200 Subject: [PATCH] Fixed docstring. This fixes #45 --- flask.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask.py b/flask.py index d3391a43..cbb10b59 100644 --- a/flask.py +++ b/flask.py @@ -1004,14 +1004,14 @@ class Flask(_PackageBoundObject): 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