Skip to content

Commit

Permalink
fix: missing exception from base
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 9e3730d commit e9adfa3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/client/grpc.py
Expand Up @@ -32,7 +32,6 @@
from grpc import aio
from grpc_health.v1 import health_pb2 as pb_health
from google.protobuf import json_format as _json_format
from google.protobuf.internal import python_message

from ..types import PathType
from ...grpc.v1.service_pb2 import Response
Expand Down Expand Up @@ -67,6 +66,7 @@ def __init__(
ssl_client_credentials: ClientCredentials | None = None,
*,
protocol_version: str = LATEST_PROTOCOL_VERSION,
**kwargs: t.Any,
):
self._pb, _ = import_generated_stubs(protocol_version)

Expand Down
2 changes: 1 addition & 1 deletion src/bentoml/_internal/client/http.py
Expand Up @@ -60,7 +60,7 @@ def from_url(cls, server_url: str, **kwargs: t.Any) -> HTTPClient:
server_url = server_url if "://" in server_url else "http://" + server_url
url_parts = urlparse(server_url)

# TODO: SSL and grpc support
# TODO: SSL support
conn = HTTPConnection(url_parts.netloc)
conn.set_debuglevel(logging.DEBUG if get_debug_mode() else 0)
conn.request("GET", url_parts.path + "/docs.json")
Expand Down
2 changes: 1 addition & 1 deletion src/bentoml/_internal/io_descriptors/base.py
Expand Up @@ -6,6 +6,7 @@
from typing import TYPE_CHECKING

from ...exceptions import InvalidArgument
from ...exceptions import BentoMLException

if TYPE_CHECKING:
from types import UnionType
Expand All @@ -19,7 +20,6 @@
from ..types import LazyType
from ..context import InferenceApiContext as Context
from ..service.openapi.specification import Schema
from ..service.openapi.specification import MediaType
from ..service.openapi.specification import Reference

InputType = (
Expand Down

0 comments on commit e9adfa3

Please sign in to comment.