From db9a618a7b7bc4befdd36806e8fd32b72162c3d9 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 22 Aug 2024 15:51:15 -0400 Subject: [PATCH] more fault tolerance --- tools/regression-tests/get-quick-list.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/regression-tests/get-quick-list.py b/tools/regression-tests/get-quick-list.py index 7c9f977b74..ff8077b20e 100644 --- a/tools/regression-tests/get-quick-list.py +++ b/tools/regression-tests/get-quick-list.py @@ -242,10 +242,11 @@ def get_examples_using_styles(regex, examples='examples'): for filename in Path(examples).rglob('in.*'): with open(filename) as f: for line in f: - matches = regex.match(line) - if matches: - inputs.append(filename) - break + if line: + matches = regex.match(line) + if matches: + inputs.append(filename) + break return inputs # ----------------------------------------------------------------------