Skip to content

Commit

Permalink
Suppressed warnings about empty lines in include blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsseidel committed Feb 13, 2019
1 parent 6d4221f commit 9ce5819
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/flt-include.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ def include(key, value, format, _):
altered = walk(doc, include, format, meta)

rv.append(altered['blocks'])
elif l == '':
# Empty lines are harmless
next
else:
sys.stderr.write("WARNING: Can't read file '" + l + "'. Skipping.\n")

Expand Down

0 comments on commit 9ce5819

Please sign in to comment.