This commit is contained in:
Piotr Domański 2024-03-25 20:20:05 +01:00
parent 226327967e
commit 9ecb13aed0

View file

@ -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(