Skip to content

Commit

Permalink
fix: address #2900
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm committed Jan 6, 2023
1 parent 518ebd6 commit 9e3730d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/client/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def from_url(cls, server_url: str, **kwargs: t.Any) -> HTTPClient:

for route, spec in openapi_spec["paths"].items():
for meth_spec in spec.values():
if "Service APIs" in meth_spec["tags"]:
if "tags" in meth_spec and "Service APIs" in meth_spec["tags"]:
if "x-bentoml-io-descriptor" not in meth_spec["requestBody"]:
# TODO: better message stating min version for from_url to work
raise BentoMLException(
Expand Down

0 comments on commit 9e3730d

Please sign in to comment.