correct typo in encoding replace strategy

This commit is contained in:
Yannik Schmidt
2021-02-26 12:17:58 +01:00
parent 571cb6fb2b
commit 95f4206394

View File

@@ -283,7 +283,7 @@ def csvread_txt(path,datapoints,pt,ph,pd):
def csvread_txt_fallback(path,datapoints,pt,ph,pd):
'''fallback for different format and encoding of txt'''
count = 0
with codecs.open(path, "r",encoding="ISO8859_2", errors='repalce') as f:
with codecs.open(path, "r",encoding="ISO8859_2", errors='replace') as f:
for l in f:
if any(s in l for s in ["Logger","Datenquelle","Sensortyp","Einheit","Daten"]):
count += 1