From e10e446c1c70958b67eab97363f8096f8aa7ae09 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 28 Sep 2023 11:12:04 -0700 Subject: [PATCH] debug: Make Openocd.targets() tolerate blank lines. --- debug/testlib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug/testlib.py b/debug/testlib.py index 435b41b5a..9f048c030 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -483,7 +483,8 @@ def targets(self): headers = lines[0].split() data = [] for line in lines[2:]: - data.append(dict(zip(headers, line.split()[1:]))) + if line.strip(): + data.append(dict(zip(headers, line.split()[1:]))) return data def wait_until_running(self, harts):