mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
fix: Error handling in Upload Attendance (#23907)
This commit is contained in:
@@ -28,7 +28,12 @@ def get_template():
|
|||||||
w = UnicodeWriter()
|
w = UnicodeWriter()
|
||||||
w = add_header(w)
|
w = add_header(w)
|
||||||
|
|
||||||
|
try:
|
||||||
w = add_data(w, args)
|
w = add_data(w, args)
|
||||||
|
except Exception as e:
|
||||||
|
frappe.clear_messages()
|
||||||
|
frappe.respond_as_web_page("Holiday List Missing", html=e)
|
||||||
|
return
|
||||||
|
|
||||||
# write out response as a type csv
|
# write out response as a type csv
|
||||||
frappe.response['result'] = cstr(w.getvalue())
|
frappe.response['result'] = cstr(w.getvalue())
|
||||||
|
|||||||
Reference in New Issue
Block a user