Skip to content

Commit 98c9ccb

Browse files
committed
tools/clean-svg: ignore an empty Layout= line
Closes #818
1 parent e8191e4 commit 98c9ccb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/clean_svg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ def clean_svg(root, tabletname):
344344
config.read(args.filename)
345345
try:
346346
svgname = config["Device"]["Layout"]
347+
if not svgname:
348+
raise KeyError("Empty layout line")
347349
except KeyError:
348350
print(
349351
f"{args.filename} does not specify a layout, skipping", file=sys.stderr

0 commit comments

Comments
 (0)