except in python 3 compatible style

This commit is contained in:
tunde 2017-08-01 17:00:14 +01:00
parent 3a512af0e2
commit c697526382

View File

@ -311,7 +311,7 @@ class ProcessPayroll(Document):
journal_entry.submit()
jv_name = journal_entry.name
self.update_salary_slip_status(jv_name = jv_name)
except Exception, e:
except Exception as e:
frappe.msgprint(e)
return jv_name