From e665391c3e23a84029f2fbd33c108fb980b21b19 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 17 May 2023 15:13:08 +0530 Subject: [PATCH] fix: raise correct error --- frappe/core/doctype/comment/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/comment/comment.py b/frappe/core/doctype/comment/comment.py index 9cad86ece1..dff13e1170 100644 --- a/frappe/core/doctype/comment/comment.py +++ b/frappe/core/doctype/comment/comment.py @@ -161,7 +161,7 @@ def update_comments_in_parent(reference_doctype, reference_name, _comments): raise frappe.DataTooLongException else: - raise ImplicitCommitError + raise else: if frappe.flags.in_patch: return