Skip to content

Commit

Permalink
tools/clean-svg: ignore an empty Layout= line
Browse files Browse the repository at this point in the history
Closes #818
  • Loading branch information
whot committed Nov 11, 2024
1 parent c4bc0c3 commit 3a3725d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/clean_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ def clean_svg(root, tabletname):
config.read(args.filename)
try:
svgname = config["Device"]["Layout"]
if not svgname:
raise KeyError("Empty layout line")
except KeyError:
print(
f"{args.filename} does not specify a layout, skipping", file=sys.stderr
Expand Down

0 comments on commit 3a3725d

Please sign in to comment.