fix: log error during exotel migration
diff --git a/erpnext/patches/v15_0/remove_exotel_integration.py b/erpnext/patches/v15_0/remove_exotel_integration.py
index a37773f..9b99fc6 100644
--- a/erpnext/patches/v15_0/remove_exotel_integration.py
+++ b/erpnext/patches/v15_0/remove_exotel_integration.py
@@ -1,5 +1,3 @@
-from contextlib import suppress
-
import click
import frappe
from frappe import _
@@ -13,12 +11,14 @@
if "exotel_integration" in frappe.get_installed_apps():
return
- with suppress(Exception):
+ try:
exotel = frappe.get_doc(SETTINGS_DOCTYPE)
if exotel.enabled:
notify_existing_users()
frappe.delete_doc("DocType", SETTINGS_DOCTYPE)
+ except Exception:
+ frappe.log_error("Failed to remove Exotel Integration.")
def notify_existing_users():