[fix] rollback if exception in bulk rename

This commit is contained in:
Anand Doshi 2015-10-20 12:11:26 +05:30
parent 12af47918d
commit 17dc249841

View File

@ -51,5 +51,6 @@ def upload(select_doctype=None, rows=None):
rename_log.append("<span style='color: RED'>" + \
_("Failed: ") + row[0] + " -> " + row[1] + "</span>")
rename_log.append("<span style='margin-left: 20px;'>" + repr(e) + "</span>")
frappe.db.rollback()
return rename_log