From c73d15d347ba5a973e257932ffb9d6012939e3a5 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 17 Jul 2012 04:18:40 +0100 Subject: [PATCH] Remove unused wrap_errors decorator Only used by rescue extension in nova. Change-Id: I3ade99405736bf8ffb8891a8d53c02905501ae44 --- cinder/api/openstack/extensions.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cinder/api/openstack/extensions.py b/cinder/api/openstack/extensions.py index baa9510b6..c7bce4b83 100644 --- a/cinder/api/openstack/extensions.py +++ b/cinder/api/openstack/extensions.py @@ -297,18 +297,6 @@ class ResourceExtension(object): self.custom_routes_fn = custom_routes_fn -def wrap_errors(fn): - """Ensure errors are not passed along.""" - def wrapped(*args, **kwargs): - try: - return fn(*args, **kwargs) - except webob.exc.HTTPException: - raise - except Exception: - raise webob.exc.HTTPInternalServerError() - return wrapped - - def load_standard_extensions(ext_mgr, logger, path, package, ext_list=None): """Registers all standard API extensions.""" -- 2.45.2