Skip to content

Commit 7b5d3af

Browse files
Revert "Fix#5 : Add logic to read CSV file using multiple encodings.. #5"
1 parent e13359f commit 7b5d3af

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/etl/extract.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ def extract(path: str = "xyz.csv") -> pd.DataFrame :
3535
pass
3636
except UnicodeDecodeError:
3737
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-
continue
4238

4339
if df is None:
4440
raise ValueError(f"Could not read CSV with tried encodings: {encodings}")

0 commit comments

Comments
 (0)