RoyAalekh commited on
Commit
c7ed2a6
·
1 Parent(s): c7f390d

added a check for duckdb file

Browse files
Files changed (1) hide show
  1. eda/load_clean.py +3 -1
eda/load_clean.py CHANGED
@@ -63,7 +63,9 @@ def load_raw() -> tuple[pl.DataFrame, pl.DataFrame]:
63
  import duckdb
64
 
65
  if not Path(DUCKDB_FILE).exists():
66
- print("DuckDB file not found, skipping DuckDB load.")
 
 
67
  raise FileNotFoundError("DuckDB file not found.")
68
  if DUCKDB_FILE.exists():
69
  print(f"Loading raw data from DuckDB: {DUCKDB_FILE}")
 
63
  import duckdb
64
 
65
  if not Path(DUCKDB_FILE).exists():
66
+ print(
67
+ f"DuckDB file not found at {Path(DUCKDB_FILE)}, skipping DuckDB load."
68
+ )
69
  raise FileNotFoundError("DuckDB file not found.")
70
  if DUCKDB_FILE.exists():
71
  print(f"Loading raw data from DuckDB: {DUCKDB_FILE}")