Merge pull request #25611 from akhilnarang/fix-unbound-local-variable
fix(webhook): `r` is referenced here before its initialized
This commit is contained in:
commit
c907636c3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue