Python 3: Don't use BaseException.message attribute
In Python 3, BaseException.message is removed. So we use args attribute instead. Change-Id: I8f97c0b0452f348acef20e9d248f02b83cec2562
This commit is contained in:
parent
e5f9a393ce
commit
6af1b2178f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user