summaryrefslogtreecommitdiff
path: root/trove/flavor
diff options
context:
space:
mode:
authorDirk Mueller <dirk@dmllr.de>2013-06-25 14:19:56 +0200
committerDirk Mueller <dirk@dmllr.de>2013-07-03 14:04:17 +0200
commit7b0ed4f49c941424d815b959522e021f507f878c (patch)
tree7de8a890888364dd2cd859e7430bc46b2bf39a2f /trove/flavor
parenteafc62f61b1a3b1294f557f676e33f831af0ce77 (diff)
downloadtrove-7b0ed4f49c941424d815b959522e021f507f878c.tar.gz
Python 3.x compatibility fixes
Mechanical translation of the easy-to-fix Python 2.x->3.x compatibility issues. Should work with all Python versions >= 2.6. Change-Id: I693ff5d72b2db8d9d3a3347f70f22290897e9cff
Diffstat (limited to 'trove/flavor')
-rw-r--r--trove/flavor/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/trove/flavor/models.py b/trove/flavor/models.py
index 79e3beee..4187f3ec 100644
--- a/trove/flavor/models.py
+++ b/trove/flavor/models.py
@@ -38,9 +38,9 @@ class Flavor(object):
try:
client = create_nova_client(context)
self.flavor = client.flavors.get(flavor_id)
- except nova_exceptions.NotFound, e:
+ except nova_exceptions.NotFound as e:
raise exception.NotFound(uuid=flavor_id)
- except nova_exceptions.ClientException, e:
+ except nova_exceptions.ClientException as e:
raise exception.TroveError(str(e))
return
msg = ("Flavor is not defined, and"