Fix AttributeError on HTTPError in deploy code 23/15123/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 29 Mar 2019 15:21:23 +0000 (11:21 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 29 Mar 2019 15:27:31 +0000 (11:27 -0400)
commitc1c2275aa44ed2f16aedff8953eebac2007f7fd1
tree03d3a002a047b3203778fe122dd28b2d742b4d6f
parente4cf18f8cc0f34d1c0d79eb4ca999ad721ace36d
Fix AttributeError on HTTPError in deploy code

When a deploy nexus-zip fails it throws a stack trace with:

    AttributeError: 'HTTPError' object has no attribute 'value'

Which is a very unhelpful error message but it's caused by the
error handler code incorrectly handling the returned string value
for the exception.

Change-Id: I6d059dd73a5e774c15ab90a3b53728d6e051bf0c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
lftools/deploy.py
releasenotes/notes/fix-httperror-exception-6017608b5f939733.yaml [new file with mode: 0644]