mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 21:19:19 +00:00
fix: handle exception if sending Appointment Confirmation message fails (#21569)
This commit is contained in:
@@ -325,7 +325,11 @@ def update_status(appointment_id, status):
|
|||||||
def send_confirmation_msg(doc):
|
def send_confirmation_msg(doc):
|
||||||
if frappe.db.get_single_value('Healthcare Settings', 'send_appointment_confirmation'):
|
if frappe.db.get_single_value('Healthcare Settings', 'send_appointment_confirmation'):
|
||||||
message = frappe.db.get_single_value('Healthcare Settings', 'appointment_confirmation_msg')
|
message = frappe.db.get_single_value('Healthcare Settings', 'appointment_confirmation_msg')
|
||||||
send_message(doc, message)
|
try:
|
||||||
|
send_message(doc, message)
|
||||||
|
except Exception:
|
||||||
|
frappe.log_error(frappe.get_traceback(), _('Appointment Confirmation Message Not Sent'))
|
||||||
|
frappe.msgprint(_('Appointment Confirmation Message Not Sent'), indicator='orange')
|
||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
|
|||||||
Reference in New Issue
Block a user