Skip to content

ValueError: Predicted unit is kcal but current unit is g #1764

@sentry

Description

@sentry

Sentry Issue: ROBOTOFF-2HA

ValueError: Predicted unit is kcal but current unit is g
(8 additional frame(s) were not displayed)
...
  File "robotoff/insights/importer.py", line 319, in generate_insights
    candidates = [
  File "robotoff/insights/importer.py", line 319, in <listcomp>
    candidates = [
  File "robotoff/insights/importer.py", line 1512, in generate_candidates
    if cls.keep_prediction(product, prediction.data["nutrients"]):
  File "robotoff/insights/importer.py", line 1610, in keep_prediction
    if not NutrientExtractionImporter._is_equal_nutrient_value(
  File "robotoff/insights/importer.py", line 1662, in _is_equal_nutrient_value
    raise ValueError(

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

To triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions