Raise InvalidInput directly instead of catch it

Fixes bug 1094023

Change-Id: I960b01996e33da0da5e9cd181479ebcf70d38997
This commit is contained in:
He Jie Xu 2012-12-27 21:31:34 +08:00
parent 5e4368b32f
commit d17127afe3

View File

@ -89,10 +89,7 @@ def _filters(request, attr_info):
convert_list_to = lambda values_: [convert_to(x)
for x in values_]
if convert_list_to:
try:
result_values = convert_list_to(values)
except exceptions.InvalidInput as e:
raise webob.exc.HTTPBadRequest(str(e))
result_values = convert_list_to(values)
else:
result_values = values
if result_values: