forked from orbit-oss/flask
Document url_for BuildError hook.
This commit is contained in:
parent
ccc6816459
commit
148c50abf9
2 changed files with 35 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue