From 8d75fcd0607bd082b01acb6b3e11d10d1b261e4b Mon Sep 17 00:00:00 2001 From: Malin Date: Fri, 20 Mar 2026 11:35:46 +0100 Subject: [PATCH] fix: skip products with blank or non-numeric EAN codes --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 010f9ae..b779fda 100644 --- a/main.py +++ b/main.py @@ -69,6 +69,11 @@ def download_and_parse(): ean = str(int(ean_raw)) else: ean = str(ean_raw).strip() + + # Skip products with blank or non-numeric EAN codes + if not ean or not ean.isdigit(): + continue + brand_raw = row[9] # col J brand = str(brand_raw) if brand_raw is not None else "" min_box_raw = row[10] # col K