From 9932c83c648256084ab8317ec6f9f8774f751d04 Mon Sep 17 00:00:00 2001 From: rajat29 Date: Sun, 7 May 2017 11:18:28 +0530 Subject: [PATCH] Replaced exc.message with str(exc) For logging the exception message: exc.message has been deprecated. The preferred way is to call str(exc). More details: https://www.python.org/dev/peps/pep-0352/ Change-Id: I222352b0383d357fec057cb7631ff7b65e0e973c --- manila/share/drivers/lvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manila/share/drivers/lvm.py b/manila/share/drivers/lvm.py index 5bc1e41772..0566cef42b 100644 --- a/manila/share/drivers/lvm.py +++ b/manila/share/drivers/lvm.py @@ -275,7 +275,7 @@ class LVMShareDriver(LVMMixin, driver.ShareDriver): except exception.ProcessExecutionError: LOG.warning("Can't remove share %r", share['id']) except exception.InvalidShare as exc: - LOG.warning(exc.message) + LOG.warning(str(exc)) def update_access(self, context, share, access_rules, add_rules, delete_rules, share_server=None):