From b63b00da348db8cafd8167ecda0bd734c6cab613 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 27 Jun 2025 11:21:28 +0530 Subject: [PATCH] fix: Commit before starting a patch (#33133) Closes https://github.com/frappe/frappe/issues/33092 --- frappe/modules/patch_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/modules/patch_handler.py b/frappe/modules/patch_handler.py index 0ed2ad35b2..90d5a74cc9 100644 --- a/frappe/modules/patch_handler.py +++ b/frappe/modules/patch_handler.py @@ -176,7 +176,7 @@ def execute_patch(patchmodule: str, method=None, methodargs=None): ) start_time = time.monotonic() - frappe.db.begin() + frappe.db.commit() frappe.db.auto_commit_on_many_writes = 0 try: if patchmodule: