From 7b5d3af8208244b20e5a9a4616dfaf147b74596f Mon Sep 17 00:00:00 2001 From: Dheeraj Yadav <135234085+Dheerajyadav1@users.noreply.github.com> Date: Fri, 24 Oct 2025 21:45:48 +0530 Subject: [PATCH] Revert "Fix#5 : Add logic to read CSV file using multiple encodings.. #5" --- app/etl/extract.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/etl/extract.py b/app/etl/extract.py index bec44ea..bdf0f68 100644 --- a/app/etl/extract.py +++ b/app/etl/extract.py @@ -35,10 +35,6 @@ def extract(path: str = "xyz.csv") -> pd.DataFrame : pass except UnicodeDecodeError: print(f"Failed to read with encoding '{encoding}'") # Log the encoding that failed - continue - except Exception as e: - print(f"Error reading with encoding '{encoding}': {e}") - continue if df is None: raise ValueError(f"Could not read CSV with tried encodings: {encodings}")