fix: Handle extraction patterns that return None (#26)
Reviewed-on: #26 Co-authored-by: Glen Whitney <glen@studioinfinity.org> Co-committed-by: Glen Whitney <glen@studioinfinity.org>
This commit is contained in:
parent
b6ab0fb7ee
commit
9b13ee0b3a
2 changed files with 3 additions and 1 deletions
|
@ -156,6 +156,8 @@ is checked for `{! ... !}`.
|
|||
and handling inclusion syntax.
|
||||
"""
|
||||
line = extraction_pattern.replace_line(line)
|
||||
if line is None:
|
||||
return
|
||||
include_match = StreamInclusion.include_open.search(line)
|
||||
if not include_match:
|
||||
self.output_stream.write(line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue