From 3a3725df047b1b6357437948d38ded6be7a1a201 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 11 Nov 2024 10:05:44 +1000 Subject: [PATCH] tools/clean-svg: ignore an empty Layout= line Closes #818 --- tools/clean_svg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/clean_svg.py b/tools/clean_svg.py index f5d388a2..1163b3d2 100755 --- a/tools/clean_svg.py +++ b/tools/clean_svg.py @@ -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