FIX: Tunnellängen könnten auch nicht existieren.
This commit is contained in:
+3
-1
@@ -148,7 +148,9 @@ def prepare_data(rawdata:dict):
|
|||||||
ltemp.append(Point(p))
|
ltemp.append(Point(p))
|
||||||
dtunnels[tname] = ltemp
|
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
|
# Fehler, welche im getpositions auftreten weiterführen: im Layout fehlende Dists / Sensoren / fehlende Attribute
|
||||||
errors_dists = rawdata["not_found"]["missing_distributors"]
|
errors_dists = rawdata["not_found"]["missing_distributors"]
|
||||||
|
|||||||
Reference in New Issue
Block a user