Browse Source

Update docstring for errorhandler() (#2070)

pull/2072/head
Clenimar Filemon 8 years ago committed by Markus Unterwaditzer
parent
commit
cb30a3b562
  1. 3
      flask/app.py

3
flask/app.py

@ -1153,7 +1153,8 @@ class Flask(_PackageBoundObject):
that do not necessarily have to be a subclass of the
:class:`~werkzeug.exceptions.HTTPException` class.
:param code: the code as integer for the handler
:param code_or_exception: the code as integer for the handler, or
an arbitrary exception
"""
def decorator(f):
self._register_error_handler(None, code_or_exception, f)

Loading…
Cancel
Save