[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:
|
try:
|
||||||
product_data = product_finder.find(barcode)
|
product_data = product_finder.find(barcode)
|
||||||
except product_finder.ProductNotFound:
|
except product_finder.NotFound:
|
||||||
raise HTTPException(status_code=404, detail="Product not found")
|
raise HTTPException(status_code=404, detail="Product not found")
|
||||||
except product_finder.ParseError:
|
except product_finder.ParseError:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
|
Loading…
Reference in a new issue