From 395caebd5af4f41a64ffd74ea604ee975d0f16aa Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 11 Aug 2022 17:10:55 +0530 Subject: [PATCH] fix: init only existing single doctypes --- frappe/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/installer.py b/frappe/installer.py index 32ab45e383..d7394ab3f2 100644 --- a/frappe/installer.py +++ b/frappe/installer.py @@ -493,7 +493,7 @@ def init_singles(): doc.flags.ignore_mandatory = True doc.flags.ignore_validate = True doc.save() - except ImportError: + except (ImportError, frappe.DoesNotExistError): # The doctype exists, but controller is deleted, # no need to attempt to init such single, ref: #16917 continue