From a0361d42564cf4a60ffab18beed13c6b2e4198a0 Mon Sep 17 00:00:00 2001 From: Richard Polzin Date: Tue, 15 Feb 2022 23:03:37 +0100 Subject: [PATCH] skipping tokens without img --- foundrytoencounter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/foundrytoencounter.py b/foundrytoencounter.py index 48525de..22aabff 100644 --- a/foundrytoencounter.py +++ b/foundrytoencounter.py @@ -801,6 +801,8 @@ def createMap(map, mapgroup): if "tiles" in map: for i in range(len(map["tiles"])): image = map["tiles"][i] + if image["img"] is None: + continue if "scale" not in image: image["scale"] = 1 image["img"] = urllib.parse.unquote(image["img"])