more fault tolerance
This commit is contained in:
@ -242,6 +242,7 @@ def get_examples_using_styles(regex, examples='examples'):
|
|||||||
for filename in Path(examples).rglob('in.*'):
|
for filename in Path(examples).rglob('in.*'):
|
||||||
with open(filename) as f:
|
with open(filename) as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
|
if line:
|
||||||
matches = regex.match(line)
|
matches = regex.match(line)
|
||||||
if matches:
|
if matches:
|
||||||
inputs.append(filename)
|
inputs.append(filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user