diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-10-04 23:19:53 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-10-04 23:19:53 +0000 |
commit | fd421602d4ee5e5fa650be931e01cd81073daa2f (patch) | |
tree | 4a5eebb19f5c69bdc1c88a2423c2788fce2005f5 | |
parent | 1334f3e9ecfbb5915be5c463adb6f6256375ab26 (diff) | |
parent | 6af1b2178ff3f8d9a80998afb03ad6028f033a2e (diff) | |
download | oslo-rootwrap-fd421602d4ee5e5fa650be931e01cd81073daa2f.tar.gz |
Merge "Python 3: Don't use BaseException.message attribute"
-rw-r--r-- | oslo_rootwrap/cmd.py | 2 |
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, |