flaskparser.abort: add data to exception even if kwargs is empty
@@ -34,7 +34,6 @@ def abort(http_status_code, exc=None, **kwargs):
try:
flask.abort(http_status_code)
except HTTPException as err:
- if len(kwargs):
err.data = kwargs
err.exc = exc
raise err
