Merge "Stop using deprecated 'message' attribute in Exception"

This commit is contained in:
Jenkins 2017-06-30 11:02:15 +00:00 committed by Gerrit Code Review
commit 8e91c5e054
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ def filter_command(command, rootwrap_config):
rw_config = wrapper.RootwrapConfig(rawconfig)
except ValueError as exc:
LOG.error('Incorrect value in %(config)s: %(exc)s',
{'config': rootwrap_config, 'exc': exc.message})
{'config': rootwrap_config, 'exc': exc})
sys.exit(errno.EINVAL)
except ConfigParser.Error:
LOG.error('Incorrect configuration file: %(config)s',