Skip to content

Commit

Permalink
tools/clean_svg: ignore an empty Layout= line
Browse files Browse the repository at this point in the history
  • Loading branch information
whot committed Nov 11, 2024
1 parent c4bc0c3 commit fe0ac6a
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 fe0ac6a

Please sign in to comment.