summaryrefslogtreecommitdiff
path: root/oslo_rootwrap/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_rootwrap/cmd.py')
-rw-r--r--oslo_rootwrap/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_rootwrap/cmd.py b/oslo_rootwrap/cmd.py
index ff02fbe..0036fa5 100644
--- a/oslo_rootwrap/cmd.py
+++ b/oslo_rootwrap/cmd.py
@@ -77,7 +77,7 @@ def main(run_daemon=False):
rawconfig.read(configfile)
config = wrapper.RootwrapConfig(rawconfig)
except ValueError as exc:
- msg = "Incorrect value in %s: %s" % (configfile, exc.message)
+ msg = "Incorrect value in %s: %s" % (configfile, exc.args[0])
_exit_error(execname, msg, RC_BADCONFIG, log=False)
except moves.configparser.Error:
_exit_error(execname, "Incorrect configuration file: %s" % configfile,