fix: double exception in payroll (#24078)

This commit is contained in:
Afshan
2020-12-08 09:32:04 +05:30
committed by GitHub
parent 01eca12fa7
commit 749d36a4dd

View File

@@ -289,7 +289,9 @@ class PayrollEntry(Document):
jv_name = journal_entry.name
self.update_salary_slip_status(jv_name = jv_name)
except Exception as e:
frappe.msgprint(e)
if type(e) in (str, list, tuple):
frappe.msgprint(e)
raise
return jv_name