Merge pull request #25611 from akhilnarang/fix-unbound-local-variable

fix(webhook): `r` is referenced here before its initialized
This commit is contained in:
Akhil Narang 2024-03-22 19:11:14 +05:30 committed by GitHub
commit c907636c3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,7 +156,7 @@ def get_context(doc):
def enqueue_webhook(doc, webhook) -> None:
request_url = headers = data = None
request_url = headers = data = r = None
try:
webhook: Webhook = frappe.get_doc("Webhook", webhook.get("name"))
request_url = webhook.request_url