From 9a5c0c2f1833b68a48809ff920af8aa8fb2c6f7d Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 14 May 2025 19:58:39 +0530 Subject: [PATCH] chore: formatting fix (cherry picked from commit d6ff40cc6aceae1dbf1f50dc033604a476914c7d) --- crm/uninstall.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crm/uninstall.py b/crm/uninstall.py index 34622d0b..a186c79f 100644 --- a/crm/uninstall.py +++ b/crm/uninstall.py @@ -1,12 +1,13 @@ # Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt -from __future__ import unicode_literals import click import frappe + def before_uninstall(): delete_email_template_custom_fields() + def delete_email_template_custom_fields(): if frappe.get_meta("Email Template").has_field("enabled"): click.secho("* Uninstalling Custom Fields from Email Template") @@ -19,4 +20,4 @@ def delete_email_template_custom_fields(): for fieldname in fieldnames: frappe.db.delete("Custom Field", {"name": "Email Template-" + fieldname}) - frappe.clear_cache(doctype="Email Template") \ No newline at end of file + frappe.clear_cache(doctype="Email Template")