diff --git a/bench/patches/v5/update_archived_sites.py b/bench/patches/v5/update_archived_sites.py index 76507daf..0690e4e8 100644 --- a/bench/patches/v5/update_archived_sites.py +++ b/bench/patches/v5/update_archived_sites.py @@ -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