Update exception message handling for python3

str(e.message) is not valid for python3, but str(e) is.

Change-Id: Ifb3e13ee035371e0534c7bf5dd1587690f3dd6f5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-05-11 11:56:20 -04:00
parent 009189934b
commit d472628a60
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ class NodePoolCmd(NodepoolApp):
server.id, server.public_v4])
except Exception as e:
log.warning("Exception listing aliens for %s: %s"
% (provider.name, str(e.message)))
% (provider.name, str(e)))
print(t)
def alien_image_list(self):
@ -216,7 +216,7 @@ class NodePoolCmd(NodepoolApp):
if 'nodepool_build_id' in image['properties']]
except Exception as e:
log.warning("Exception listing alien images for %s: %s"
% (provider.name, str(e.message)))
% (provider.name, str(e)))
alien_ids = []
uploads = []