Browse Source

make external_url_handler example py3 compliant

- a raises statement with multiple values is no longer allowed in python 3
pull/1534/head
Christian Becker 9 years ago
parent
commit
93fe1d54bd
  1. 2
      flask/helpers.py

2
flask/helpers.py

@ -219,7 +219,7 @@ def url_for(endpoint, **values):
# Re-raise the BuildError, in context of original traceback.
exc_type, exc_value, tb = sys.exc_info()
if exc_value is error:
raise exc_type, exc_value, tb
raise exc_type(exc_value, endpoint, values).with_traceback(tb)
else:
raise error
# url_for will use this result, instead of raising BuildError.

Loading…
Cancel
Save