[barcode] small fix
This commit is contained in:
parent
6ee8c68746
commit
969b57e993
2 changed files with 1 additions and 5 deletions
|
@ -1,9 +1,6 @@
|
||||||
# FOODER
|
# FOODER
|
||||||
|
|
||||||
Simple API for food diary application. It uses FastAPI and async postgres for faster operation.
|
Simple API for food diary application. It uses FastAPI and async postgres.
|
||||||
|
|
||||||
I plan on developing a few clients for the API, for now only one is available:
|
|
||||||
- [Fooder CLI Client](https://github.com/ickyicky/fooder-cli-client)
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,5 @@ def find(bar_code: str) -> Product:
|
||||||
fiber=data["product"]["nutriments"].get("fiber_100g", 0.0),
|
fiber=data["product"]["nutriments"].get("fiber_100g", 0.0),
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise e
|
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
raise ParseError()
|
raise ParseError()
|
||||||
|
|
Loading…
Reference in a new issue