diff options
author | Chuck Short <chuck.short@canonical.com> | 2013-05-06 11:37:10 -0500 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2013-05-13 21:14:39 +0100 |
commit | 0c54b720c55f11106b006093b057529db636835a (patch) | |
tree | e358f7f1c3be6e644436c4dae4194c41844c2ca3 /openstack | |
parent | f9d502228752bcb909e58cafacd1cd948d9a8206 (diff) | |
download | oslo-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.py | 2 |
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() |