Skip to content

Commit

Permalink
fix: ensure default timeout 5 seconds
Browse files Browse the repository at this point in the history
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
  • Loading branch information
dj12djdjs and ankush committed Jun 17, 2023
1 parent 8e6ef51 commit 9a28bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/integrations/doctype/webhook/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def enqueue_webhook(doc, webhook) -> None:
url=request_url,
data=json.dumps(data, default=str),
headers=headers,
timeout=webhook.timeout,
timeout=webhook.timeout or 5,
)
r.raise_for_status()
frappe.logger().debug({"webhook_success": r.text})
Expand Down

0 comments on commit 9a28bb1

Please sign in to comment.