2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 16:14:12 +00:00

fix: mkdir -p to ignore OSErrors

Closes https://github.com/frappe/bench/issues/1279
This commit is contained in:
Gavin D'souza 2022-03-17 09:38:02 +05:30
parent 25f49c2dbb
commit d38b63a483

View File

@ -174,8 +174,7 @@ def migrate_env(python, backup=False):
from datetime import datetime
parch = os.path.join(path, "archived", "envs")
if not os.path.exists(parch):
os.mkdir(parch)
os.makedirs(parch, exist_ok=True)
source = os.path.join(path, "env")
target = parch