Raise InvalidInput directly instead of catch it
Fixes bug 1094023 Change-Id: I960b01996e33da0da5e9cd181479ebcf70d38997
This commit is contained in:
parent
5e4368b32f
commit
d17127afe3
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user