From c536aab7e2bd5af4dafa37b22b4a9972d7e7b2bc Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Thu, 27 Dec 2012 21:31:34 +0800 Subject: [PATCH] Raise InvalidInput directly instead of catch it Fixes bug 1094023 Change-Id: I960b01996e33da0da5e9cd181479ebcf70d38997 --- quantum/api/v2/base.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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: