avocado/plugins/run.py: use ValueError.args, as Python 3 has no message attribute
This fixes occurrences of crashes such as:
Traceback (most recent call last):
File "/tmp/py3/bin/avocado", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/home/cleber/src/avocado/avocado/scripts/avocado", line 75, in <module>
sys.exit(app.run())
File "/home/cleber/src/avocado/avocado/avocado/core/app.py", line 91, in run
return method(self.parser.args)
File "/home/cleber/src/avocado/avocado/avocado/plugins/run.py", line 208, in run
LOG_UI.error(e.message)
AttributeError: 'ValueError' object has no attribute 'message'
Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
想要评论请 注册 或 登录