FIX: Tunnellängen könnten auch nicht existieren.

This commit is contained in:
2025-07-07 11:08:28 +02:00
parent 3b9b6c2fd4
commit f858dca377
+3 -1
View File
@@ -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"]