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: