From 4c09d809c9bd37eeb55f64ec01f8a0b900f9a3bf Mon Sep 17 00:00:00 2001 From: Stanislaw Pitucha Date: Thu, 20 Sep 2012 10:23:45 +0100 Subject: Cleanup exception handling Make sure stack traces are not cut short. Make sure there's only one exception handler per function (otherwise new exception covers the old one). Fixes bug 1053421 Change-Id: Id1ff84a5ba3eaeef6385b311773bde784672e1f9 --- nova/api/openstack/compute/contrib/floating_ips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/floating_ips.py b/nova/api/openstack/compute/contrib/floating_ips.py index f3692e02e..be952eb8a 100644 --- a/nova/api/openstack/compute/contrib/floating_ips.py +++ b/nova/api/openstack/compute/contrib/floating_ips.py @@ -175,7 +175,7 @@ class FloatingIPController(object): nmfi.message = _("No more floating ips in pool %s.") % pool else: nmfi.message = _("No more floating ips available.") - raise nmfi + raise return _translate_floating_ip_view(ip) -- cgit