Kleiner Fix, falls ein Leerzeichen vom Sivas mitkommt, wird die Datei nicht gefunden.
This commit is contained in:
+1
-2
@@ -913,8 +913,7 @@ def map_sensor_to_cable_cfg(plines):
|
||||
section_list = mapping[name_prefix]
|
||||
else:
|
||||
sens2cable[pl.id].append("Kein Kabeltyp zugewiesen (BMK.cfg)")
|
||||
section_list = list()
|
||||
# TODO was soll hier passieren wenn die Config falsch ist?
|
||||
continue # Kein Mapping gefunden, Rest überspringen
|
||||
|
||||
# Liste aus evtl. mehreren Sektionen erzeugen
|
||||
sections = [s.strip() for s in section_list.split(",")]
|
||||
|
||||
+1
-1
@@ -99,7 +99,7 @@ def prepare_data(rawdata:dict):
|
||||
for sname, sdata in sensors.items():
|
||||
dsensors[sname] = {
|
||||
"point": Point(sdata["pos"]),
|
||||
"artinr": sdata.get("ARTINR","")
|
||||
"artinr": sdata.get("ARTINR","").strip()
|
||||
}
|
||||
|
||||
subdists = rawdata["distributors"]
|
||||
|
||||
Reference in New Issue
Block a user