From 19b137aeed77a05a2107e63d4566323351668f00 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Fri, 15 Jan 2021 15:54:31 +0000 Subject: [PATCH] [FT] Do not fail when decoding the JSON from ip_monitor When reading the JSON blob from the file written by "ip_monitor", do not fail if the JSON blob is decoded incorrectly. Change-Id: I0b3a3cf94b1d0ae721d5446c8abcf74bd29883c7 Closes-Bug: #1911927 --- neutron/tests/functional/agent/linux/test_ip_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/functional/agent/linux/test_ip_lib.py b/neutron/tests/functional/agent/linux/test_ip_lib.py index 89c7a310ac4..88fdbaddb1c 100644 --- a/neutron/tests/functional/agent/linux/test_ip_lib.py +++ b/neutron/tests/functional/agent/linux/test_ip_lib.py @@ -733,7 +733,7 @@ class IpMonitorTestCase(testscenarios.WithScenarios, if ip_address not in registers: return False return True - except (OSError, IOError): + except (OSError, IOError, ValueError): return False def _check_read_file(self, ip_addresses):