Merge pull request #15434 from ChillarAnand/archive

fix: Use makedirs instead of mkdir to create archived sites path
This commit is contained in:
mergify[bot] 2021-12-27 19:57:21 +00:00 committed by GitHub
commit 72ee2a0817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -698,8 +698,7 @@ def _drop_site(site, root_login='root', root_password=None, archived_sites_path=
archived_sites_path = archived_sites_path or os.path.join(frappe.get_app_path('frappe'), '..', '..', '..', 'archived', 'sites')
if not os.path.exists(archived_sites_path):
os.mkdir(archived_sites_path)
os.makedirs(archived_sites_path, exist_ok=True)
move(archived_sites_path, site)