Correct usage of message in ConnectionError (#46566)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-10-10 19:21:20 +05:30 committed by Sumit Jaiswal
commit 5351a00445
2 changed files with 3 additions and 3 deletions

View file

@ -195,7 +195,7 @@ class Cliconf(CliconfBase):
try:
out = to_text(out, errors='surrogate_or_strict').strip()
except UnicodeError:
raise ConnectionError(msg=u'Failed to decode output from %s: %s' % (cmd, to_text(out)))
raise ConnectionError(message=u'Failed to decode output from %s: %s' % (cmd, to_text(out)))
try:
out = json.loads(out)