From: He Jie Xu Date: Thu, 27 Dec 2012 13:31:34 +0000 (+0800) Subject: Raise InvalidInput directly instead of catch it X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c536aab7e2bd5af4dafa37b22b4a9972d7e7b2bc;p=openstack-build%2Fneutron-build.git Raise InvalidInput directly instead of catch it Fixes bug 1094023 Change-Id: I960b01996e33da0da5e9cd181479ebcf70d38997 --- diff --git a/quantum/api/v2/base.py b/quantum/api/v2/base.py index ad3caa588..e553cffce 100644 --- a/quantum/api/v2/base.py +++ b/quantum/api/v2/base.py @@ -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: