diff --git a/flask_bower/__init__.py b/flask_bower/__init__.py index c4b2b73..a80c879 100644 --- a/flask_bower/__init__.py +++ b/flask_bower/__init__.py @@ -2,9 +2,6 @@ # coding=utf8 import os from flask import abort, json, send_file, Blueprint, current_app, url_for -import sys - -from six import reraise def validate_parameter(param): @@ -59,11 +56,7 @@ def handle_url_error(error, endpoint, values): """ url = overlay_url_for(endpoint, **values) if url is None: - exc_type, exc_value, tb = sys.exc_info() - if exc_value is error: - reraise(exc_type, exc_value, tb) - else: - raise error + raise error # url_for will use this result, instead of raising BuildError. return url diff --git a/requirements.txt b/requirements.txt index 2b83ad2..3a850f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1 @@ -e git+https://github.com/pallets/flask.git#egg=flask -six