fix: removed redundant condition
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
parent
3f792a80b1
commit
fe27b8c7e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue