Merge "Improve Python 3.x compatibility"

This commit is contained in:
Jenkins
2013-04-30 06:18:07 +00:00
committed by Gerrit Code Review
12 changed files with 49 additions and 49 deletions

View File

@@ -85,7 +85,7 @@ class OFCClient(object):
else:
reason = _("An operation on OFC is failed.")
raise nexc.OFCException(reason=reason)
except (socket.error, IOError), e:
except (socket.error, IOError) as e:
reason = _("Failed to connect OFC : %s") % str(e)
LOG.error(reason)
raise nexc.OFCException(reason=reason)