Skip to content

Commit

Permalink
fix: make sure dif dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bearsyankees committed Dec 5, 2024
1 parent df8ae86 commit 3de2feb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ferry/database/diff_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ def generate_diff(
):
diff_dict: dict[str, DiffRecord] = {}

# Make sure dif output directory exists
Path(output_dir).mkdir(parents=True, exist_ok=True)

for table_name in primary_keys.keys():
if table_name not in tables_new.keys():
raise ValueError(f"Table '{table_name}' not found in new tables")
Expand Down

0 comments on commit 3de2feb

Please sign in to comment.