Merge "Replace e.message with str(e)"

This commit is contained in:
Jenkins 2017-08-14 14:50:17 +00:00 committed by Gerrit Code Review
commit f0e4a3f82c
2 changed files with 3 additions and 3 deletions

View File

@ -31,5 +31,5 @@ class BlockerDeviceManager(object):
.read().rstrip('\n')
return (float(nr_sectors) * float(sect_size)) / units.Gi
except IOError as e:
LOG.error("Failed to read device size. %s", e)
raise exceptions.FuxiException(e.message)
LOG.error("Failed to read device size. %s", str(e))
raise exceptions.FuxiException(str(e))

View File

@ -149,4 +149,4 @@ def do_mount(devpath, mountpoint, fstype):
mounter.mount(devpath, mountpoint, fstype)
except exceptions.FuxiException as e:
with excutils.save_and_reraise_exception():
LOG.error(e.message)
LOG.error(str(e))