Skip to content
Myr

Fixed docstring. This fixes #45

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent ef0dc18 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:flask.py+2 added-2 removed
1002 unmodified lines
1003 """A decorator that is used to register a function give a given1004 error code. Example::10051006 @app.errorhandler(404)1007 def page_not_found():1007 def page_not_found(error):1008 return 'This page does not exist', 40410091010 You can also register a function as error handler without using1011 the :meth:`errorhandler` decorator. The following example is1012 equivalent to the one above::10131014 def page_not_found():1014 def page_not_found(error):1015 return 'This page does not exist', 4041016 app.error_handlers[404] = page_not_found10171018 :param code: the code as integer for the handler
246 unmodified lines