Skip to content

Commit

Permalink
fix: update PUT /images/logos/LOGO_ID route to accept null value field
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Mar 8, 2023
1 parent 649c016 commit 2e488ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def on_put(self, req: falcon.Request, resp: falcon.Response, logo_id: int):
return

type_ = req.media["type"]
value = req.media["value"] or None
value = req.media.get("value") or None
check_logo_annotation(type_, value)

if type_ != logo.annotation_type or value != logo.annotation_value:
Expand Down

0 comments on commit 2e488ab

Please sign in to comment.