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(