From 07d2b896c1f687e75957e1556d134bd7eec857b9 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 18 Jul 2023 13:01:33 +0530 Subject: [PATCH] fix: log error during exotel migration --- erpnext/patches/v15_0/remove_exotel_integration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/patches/v15_0/remove_exotel_integration.py b/erpnext/patches/v15_0/remove_exotel_integration.py index a37773f337..9b99fc6b07 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 @@ def execute(): 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():