fix: rollback if not commiting
This commit is contained in:
parent
4cc367f6c1
commit
4f162da728
1 changed files with 3 additions and 0 deletions
|
|
@ -327,6 +327,9 @@ def after_request(rollback):
|
|||
):
|
||||
frappe.db.commit()
|
||||
rollback = False
|
||||
elif frappe.db:
|
||||
frappe.db.rollback()
|
||||
rollback = False
|
||||
|
||||
# update session
|
||||
if getattr(frappe.local, "session_obj", None):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue