summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorChuck Short <chuck.short@canonical.com>2013-05-06 11:37:10 -0500
committerMark McLoughlin <markmc@redhat.com>2013-05-13 21:14:39 +0100
commit0c54b720c55f11106b006093b057529db636835a (patch)
treee358f7f1c3be6e644436c4dae4194c41844c2ca3 /openstack
parentf9d502228752bcb909e58cafacd1cd948d9a8206 (diff)
downloadoslo-0c54b720c55f11106b006093b057529db636835a.tar.gz
oslo-0c54b720c55f11106b006093b057529db636835a.tar.xz
oslo-0c54b720c55f11106b006093b057529db636835a.zip
python3: use 'as' syntax for exception assignment
From http://docs.python.org/3.1/whatsnew/3.0.html The except exc as var syntax is now standard and except exc, var is no longer supported. Change-Id: Ia3a11d72c474806cc2303a7fc9cb1a390266c0fb Signed-off-by: Chuck Short <chuck.short@canonical.com>
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/rpc/impl_qpid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/rpc/impl_qpid.py b/openstack/common/rpc/impl_qpid.py
index a7b4707..a03ebb2 100644
--- a/openstack/common/rpc/impl_qpid.py
+++ b/openstack/common/rpc/impl_qpid.py
@@ -375,7 +375,7 @@ class Connection(object):
try:
return method(*args, **kwargs)
except (qpid_exceptions.Empty,
- qpid_exceptions.ConnectionError), e:
+ qpid_exceptions.ConnectionError) as e:
if error_callback:
error_callback(e)
self.reconnect()