[fix]
This commit is contained in:
parent
226327967e
commit
9ecb13aed0
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue