We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5e3cce + 7ac5cf8 commit e13359fCopy full SHA for e13359f
app/etl/extract.py
@@ -35,6 +35,10 @@ def extract(path: str = "xyz.csv") -> pd.DataFrame :
35
pass
36
except UnicodeDecodeError:
37
print(f"Failed to read with encoding '{encoding}'") # Log the encoding that failed
38
+ continue
39
+ except Exception as e:
40
+ print(f"Error reading with encoding '{encoding}': {e}")
41
42
43
if df is None:
44
raise ValueError(f"Could not read CSV with tried encodings: {encodings}")
0 commit comments