Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'imgid' #1442

Closed
sentry-io bot opened this issue Oct 25, 2024 · 0 comments · Fixed by #1443 or #1444
Closed

KeyError: 'imgid' #1442

sentry-io bot opened this issue Oct 25, 2024 · 0 comments · Fixed by #1443 or #1444
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 25, 2024

Sentry Issue: ROBOTOFF-24W

KeyError: 'imgid'
(6 additional frame(s) were not displayed)
...
  File "robotoff/insights/importer.py", line 324, in import_insights
    to_create, to_update, to_delete = cls.generate_insights(
  File "robotoff/insights/importer.py", line 397, in generate_insights
    candidates = [
  File "robotoff/insights/importer.py", line 397, in <listcomp>
    candidates = [
  File "robotoff/insights/importer.py", line 1128, in generate_candidates
    for selected_image_image_id in (
  File "robotoff/insights/importer.py", line 1129, in <genexpr>
    image_data["imgid"]
raphael0202 added a commit that referenced this issue Oct 25, 2024
some products have an empty "images.nutrition" dict
we check here that imgid key exists in the image data

fixes #1442
raphael0202 added a commit that referenced this issue Oct 28, 2024
some products have an empty "images.nutrition" dict
we check here that imgid key exists in the image data

fixes #1442
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant