mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-20 15:25:13 +00:00
fix: log error during exotel migration
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user