commit | 749d36a4dd5b2c0134f022c6ef2c4da427839582 | [log] [tgz] |
---|---|---|
author | Afshan <33727827+AfshanKhan@users.noreply.github.com> | Tue Dec 08 09:32:04 2020 +0530 |
committer | GitHub <noreply@github.com> | Tue Dec 08 09:32:04 2020 +0530 |
tree | 94b1d936dbe4bb160f8d22f9ece49c0758b15cf8 | |
parent | 01eca12fa7a38a5f207df0b150e2813b93dd3e64 [diff] |
fix: double exception in payroll (#24078)
diff --git a/erpnext/payroll/doctype/payroll_entry/payroll_entry.py b/erpnext/payroll/doctype/payroll_entry/payroll_entry.py index 67ee231..8c2d974 100644 --- a/erpnext/payroll/doctype/payroll_entry/payroll_entry.py +++ b/erpnext/payroll/doctype/payroll_entry/payroll_entry.py
@@ -289,7 +289,9 @@ 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