Skip to content

Commit ba2ef1c

Browse files
fix: Correct file extension check to validate CSV format
1 parent 7ab6c35 commit ba2ef1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/etl/extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def extract(path: str = "xyz.csv") -> ________: # TODO (Find & Fix)
2121
if not os.path.exists(path):
2222
raise FileNotFoundError(f"❌ File not found: {path}")
2323

24-
if not path.lower().endswith('.txt'):
24+
if not path.lower().endswith('.csv'):
2525
raise ValueError(f"❌ File must be a CSV: {path}")
2626

2727
try:

0 commit comments

Comments
 (0)