From 9ecb13aed0e265f14a963ae9b5519c2e60073bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Mon, 25 Mar 2024 20:20:05 +0100 Subject: [PATCH] [fix] --- fooder/controller/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fooder/controller/product.py b/fooder/controller/product.py index 3c1746f..45d7833 100644 --- a/fooder/controller/product.py +++ b/fooder/controller/product.py @@ -46,7 +46,7 @@ class GetProductByBarCode(AuthorizedController): try: product_data = product_finder.find(barcode) - except product_finder.ProductNotFound: + except product_finder.NotFound: raise HTTPException(status_code=404, detail="Product not found") except product_finder.ParseError: raise HTTPException(