more fault tolerance

This commit is contained in:
Axel Kohlmeyer
2024-08-22 15:51:15 -04:00
parent 66d6804d23
commit db9a618a7b

View File

@ -242,6 +242,7 @@ def get_examples_using_styles(regex, examples='examples'):
for filename in Path(examples).rglob('in.*'):
with open(filename) as f:
for line in f:
if line:
matches = regex.match(line)
if matches:
inputs.append(filename)