Skip to content

Commit

Permalink
added exception
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Mar 12, 2024
1 parent c0ac631 commit 4c30d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __call__(self, image: Union[str, Path, ImageType]) -> List[Dict]:
"statusCode" in resp_json and resp_json["statusCode"] != 200
) or "statusCode" not in resp_json:
_LOGGER.error(f"Request failed: {resp_json}")
return cast(List[Dict], [resp_json])
raise ValueError(f"Request failed: {resp_json}")
resp_data = resp_json["data"]
for elt in resp_data:
if "bboxes" in elt:
Expand Down

0 comments on commit 4c30d4b

Please sign in to comment.