From fe27b8c7e0c622365fe2b034ca5b7bf37bcd7464 Mon Sep 17 00:00:00 2001 From: Shariq Ansari <30859809+shariquerik@users.noreply.github.com> Date: Fri, 23 Jun 2023 16:31:55 +0530 Subject: [PATCH] fix: removed redundant condition Co-authored-by: Ankush Menat --- frappe/integrations/doctype/webhook/webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/integrations/doctype/webhook/webhook.py b/frappe/integrations/doctype/webhook/webhook.py index c798c64c2c..5b8c653198 100644 --- a/frappe/integrations/doctype/webhook/webhook.py +++ b/frappe/integrations/doctype/webhook/webhook.py @@ -76,7 +76,7 @@ class Webhook(Document): frappe.throw(_("Same Field is entered more than once")) def validate_secret(self): - if self.enable_security and self.webhook_secret: + if self.enable_security: try: self.get_password("webhook_secret", False).encode("utf8") except Exception: