Merge branch 'master' of github.com:mitsuhiko/flask

This commit is contained in:
Jimmy McCarthy 2015-09-14 13:06:54 -05:00
commit 04a3eeee3b
7 changed files with 38 additions and 29 deletions

View file

@ -1771,8 +1771,9 @@ class Flask(_PackageBoundObject):
rv = handler(error, endpoint, values)
if rv is not None:
return rv
except BuildError as error:
pass
except BuildError as e:
# make error available outside except block (py3)
error = e
# At this point we want to reraise the exception. If the error is
# still the same one we can reraise it with the original traceback,