mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
fix: mkdir -p to ignore OSError
s
Closes https://github.com/frappe/bench/issues/1279
This commit is contained in:
parent
25f49c2dbb
commit
d38b63a483
@ -174,8 +174,7 @@ def migrate_env(python, backup=False):
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
parch = os.path.join(path, "archived", "envs")
|
parch = os.path.join(path, "archived", "envs")
|
||||||
if not os.path.exists(parch):
|
os.makedirs(parch, exist_ok=True)
|
||||||
os.mkdir(parch)
|
|
||||||
|
|
||||||
source = os.path.join(path, "env")
|
source = os.path.join(path, "env")
|
||||||
target = parch
|
target = parch
|
||||||
|
Loading…
Reference in New Issue
Block a user