Skip to content

Commit

Permalink
fix: Check if archived_sites directory exists before running
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Nov 30, 2021
1 parent dc197cf commit b11f5b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bench/patches/v5/update_archived_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def execute(bench_path):
old_directory = Path(bench_path, "archived_sites")
new_directory = Path(bench_path, "archived", "sites")

if not old_directory.exists():
return False

if old_directory.is_symlink():
return True

Expand Down

0 comments on commit b11f5b0

Please sign in to comment.