From 5a7eb231902d8c485c48583bf1cd8ebddffa5f63 Mon Sep 17 00:00:00 2001 From: shreyas Date: Thu, 29 Sep 2016 12:06:42 +0530 Subject: [PATCH] [Fix] Prevent site creation failure in case installing.lock is not found --- frappe/commands/site.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/commands/site.py b/frappe/commands/site.py index 9ff5071bc0..6f538eda8d 100755 --- a/frappe/commands/site.py +++ b/frappe/commands/site.py @@ -66,7 +66,9 @@ def _new_site(db_name, site, mariadb_root_username=None, mariadb_root_password=N print "*** Scheduler is", scheduler_status, "***" finally: - os.remove(installing) + if os.path.exists(installing): + os.remove(installing) + frappe.destroy() @click.command('restore')