fix: Rollback on exception
This commit is contained in:
parent
23d6e27f80
commit
5e8a56b444
1 changed files with 2 additions and 0 deletions
|
|
@ -481,6 +481,8 @@ class Importer:
|
|||
)
|
||||
)
|
||||
frappe.clear_messages()
|
||||
# rollback if exception
|
||||
frappe.db.rollback()
|
||||
|
||||
# set status
|
||||
failures = [l for l in import_log if l.get("success") == False]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue