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