Skip to content

Commit

Permalink
fix(webhook): r is referenced here before its initialized
Browse files Browse the repository at this point in the history
Broke in #21064

Sentry: FRAPPE-2SH

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
(cherry picked from commit 2af42f5)
  • Loading branch information
akhilnarang authored and mergify[bot] committed Mar 22, 2024
1 parent bbf55df commit a60bb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/integrations/doctype/webhook/webhook.py
Expand Up @@ -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
Expand Down

0 comments on commit a60bb4e

Please sign in to comment.