From 334906bbf30befc62b214b2c45434fd1e18655ef Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Mon, 21 Apr 2025 11:13:47 +0200 Subject: [PATCH] Missing raise_for_status for Sligro price retrieval --- inflatinator/scrapers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/inflatinator/scrapers.py b/inflatinator/scrapers.py index b94e4f9..23aae86 100644 --- a/inflatinator/scrapers.py +++ b/inflatinator/scrapers.py @@ -120,6 +120,7 @@ def sligro_get_by_gtin(gtin13): # Pricing requires logging in and is on a separate endpoint... pricing_resp = sligro_client().get(f'https://www.sligro.nl/api/cart/sligro-nl/customerorganizationdatas?productCodes={sku}') + pricing_resp.raise_for_status() pricing = pricing_resp.json()['data']['products'][0] # If fromPrice is present, this product has a temporary discount. We prefer the regular price as