2
0
mirror of https://github.com/frappe/bench.git synced 2024-06-27 11:43:29 +00:00

fix: Check if archived_sites directory exists before running

This commit is contained in:
Gavin D'souza 2021-11-30 17:45:50 +05:30
parent dc197cf974
commit b11f5b0f96

View File

@ -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