From fcc77e877e2010e0672599a3e3df9aff8d1392ac Mon Sep 17 00:00:00 2001 From: Chinmay Pai Date: Sun, 21 Jun 2020 12:51:08 +0530 Subject: [PATCH] chore: update exception string --- frappe/custom/doctype/custom_field/custom_field.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frappe/custom/doctype/custom_field/custom_field.py b/frappe/custom/doctype/custom_field/custom_field.py index 23ee8efc98..bc325b654e 100644 --- a/frappe/custom/doctype/custom_field/custom_field.py +++ b/frappe/custom/doctype/custom_field/custom_field.py @@ -74,8 +74,7 @@ class CustomField(Document): def on_trash(self): #check if Admin owned field if self.owner == 'Administrator' and frappe.session.user != 'Administrator': - frappe.throw(_('''Custom Field {0} is created by Administrator. - Administrator owned custom fields can only be deleted by Administrator''').format( + frappe.throw(_("Custom Field {0} is created by the Administrator and can only be deleted through the Administrator account.").format( frappe.bold(self.label))) # delete property setter entries