From f858dca3779d63f3a46d3e0ded237e0bcb42e276 Mon Sep 17 00:00:00 2001 From: mistangl Date: Mon, 7 Jul 2025 11:08:28 +0200 Subject: [PATCH] =?UTF-8?q?FIX:=20Tunnell=C3=A4ngen=20k=C3=B6nnten=20auch?= =?UTF-8?q?=20nicht=20existieren.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/routing.py b/lib/routing.py index da45ada..067d4f9 100644 --- a/lib/routing.py +++ b/lib/routing.py @@ -148,7 +148,9 @@ def prepare_data(rawdata:dict): ltemp.append(Point(p)) dtunnels[tname] = ltemp - dtunlength = rawdata["tunnels"]["length"] + dtunlength = {} + if "length" in rawdata["tunnels"]: + dtunlength = rawdata["tunnels"]["length"] # Fehler, welche im getpositions auftreten weiterführen: im Layout fehlende Dists / Sensoren / fehlende Attribute errors_dists = rawdata["not_found"]["missing_distributors"]