Revert "Merge pull request #859 from wvh/register_error_handler"
This reverts commit6347e75dee, reversing changes made to3fd40e83e5.
This commit is contained in:
parent
6347e75dee
commit
2aa26fff04
2 changed files with 0 additions and 44 deletions
|
|
@ -399,14 +399,3 @@ class Blueprint(_PackageBoundObject):
|
|||
self.name, code_or_exception, f))
|
||||
return f
|
||||
return decorator
|
||||
|
||||
def register_error_handler(self, code_or_exception, f):
|
||||
"""Non-decorator version of the :meth:`errorhandler` error attach
|
||||
function, akin to the :meth:`~flask.Flask.register_error_handler`
|
||||
application-wide function of the :class:`~flask.Flask` object but
|
||||
for error handlers limited to this blueprint.
|
||||
|
||||
.. versionadded:: 0.11
|
||||
"""
|
||||
self.record_once(lambda s: s.app._register_error_handler(
|
||||
self.name, code_or_exception, f))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue