From af4264270b55234b66b360a2e27d0f1df10551f5 Mon Sep 17 00:00:00 2001 From: etienne-hd Date: Fri, 6 Mar 2026 19:56:47 +0100 Subject: [PATCH] feat(example): raise exception if request failed --- examples/discord.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/discord.py b/examples/discord.py index 26eb2dc..65969c3 100644 --- a/examples/discord.py +++ b/examples/discord.py @@ -46,4 +46,5 @@ def handle(ad: lbc.Ad, search_name: str) -> None: "attachments": [] } - requests.post(WEBHOOK_URL, json=payload) \ No newline at end of file + response = requests.post(WEBHOOK_URL, json=payload) + response.raise_for_status() \ No newline at end of file