mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 17:24:41 +00:00
fix: Check if archived_sites directory exists before running
This commit is contained in:
parent
dc197cf974
commit
b11f5b0f96
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user