Skip to content

Commit

Permalink
fix: Initialize "r" to avoid UnboundLocalError (#19630) (#20758)
Browse files Browse the repository at this point in the history
fixes #19608

(cherry picked from commit f9496ff)

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
  • Loading branch information
mergify[bot] and surajshetty3416 committed Apr 18, 2023
1 parent 8fa1580 commit c852197
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frappe/integrations/doctype/webhook/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def enqueue_webhook(doc, webhook):
webhook = frappe.get_doc("Webhook", webhook.get("name"))
headers = get_webhook_headers(doc, webhook)
data = get_webhook_data(doc, webhook)
r = None

for i in range(3):
try:
Expand Down

0 comments on commit c852197

Please sign in to comment.