Merge "Replace e.message with str(e)"
This commit is contained in:
commit
f0e4a3f82c
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue