Skip to content

Commit

Permalink
fix: init only existing single doctypes
Browse files Browse the repository at this point in the history
(cherry picked from commit 395caeb)
  • Loading branch information
nabinhait authored and mergify[bot] committed Aug 11, 2022
1 parent b3dc4c0 commit 75b6a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75b6a33

Please sign in to comment.