Catch errors thrown by check_response_code 50/62350/1
authorEric Ball <eball@linuxfoundation.org>
Wed, 20 Nov 2019 02:02:24 +0000 (18:02 -0800)
committerEric Ball <eball@linuxfoundation.org>
Wed, 20 Nov 2019 02:13:09 +0000 (18:13 -0800)
commit7fa10c8a5a086bb4934da50e65c9f7d7bc6153f7
treeb31e26cff4a300adc93fd85b59336f5189d9ed63
parentce8508e48bc148a5f97e3a9cf41922d5b15841a2
Catch errors thrown by check_response_code

For the current methods in lfidapi, we don't need to see the stack
trace or raise the error, so we should just catch and print it, and
then exit 1.
This also includes some minor cleanup.

Issue: RELENG-2024
Change-Id: Ife7f9b82be148a208c66134ef912bc091afac041
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
lftools/lfidapi.py
releasenotes/notes/handle-lfidapi-errors-433cac02fc5e5e00.yaml [new file with mode: 0644]