mirror of
https://github.com/frappe/bench.git
synced 2024-11-17 02:25:16 +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")
|
old_directory = Path(bench_path, "archived_sites")
|
||||||
new_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():
|
if old_directory.is_symlink():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user