Document url_for BuildError hook.

This commit is contained in:
Ron DuPlain 2012-04-23 21:20:47 -04:00
parent ccc6816459
commit 148c50abf9
2 changed files with 35 additions and 0 deletions

View file

@ -1492,6 +1492,7 @@ class Flask(_PackageBoundObject):
if self.build_error_handler is None:
exc_type, exc_value, tb = sys.exc_info()
if exc_value is error:
# exception is current, raise in context of original traceback.
raise exc_type, exc_value, tb
else:
raise error