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

ValueError: unknown barcode format: #1445

Open
sentry-io bot opened this issue Oct 25, 2024 · 0 comments
Open

ValueError: unknown barcode format: #1445

sentry-io bot opened this issue Oct 25, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 25, 2024

What happens when products are deleted? It looks like an "update" event with an empty barcode is added to the stream, to be checked on staging.

Sentry Issue: ROBOTOFF-23J

ValueError: unknown barcode format: 
(4 additional frame(s) were not displayed)
...
  File "robotoff/models.py", line 35, in wrapper
    return fn(*args, **kwargs)
  File "robotoff/workers/tasks/product_updated.py", line 48, in update_insights_job
    delete_images(product_id, deleted_images)
  File "robotoff/images.py", line 209, in delete_images
    source_image = generate_image_path(product_id, image_id)
  File "robotoff/off.py", line 98, in generate_image_path
    return _generate_file_path(product_id, image_id, ".jpg")
  File "robotoff/off.py", line 84, in _generate_file_path
    splitted_barcode = split_barcode(product_id.barcode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

0 participants