Skip to content

Commit

Permalink
chore: update exception message.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm committed Dec 10, 2022
1 parent 94f218d commit 756e36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bentoml/_internal/client/grpc.py
Expand Up @@ -249,11 +249,11 @@ def from_url(cls, server_url: str, **kwargs: t.Any) -> GrpcClient:
if parse(protocol_version) < parse("v1"):
exception_message = [
f"Using protocol version {protocol_version} older than v1. 'bentoml.client.Client' will only support protocol version v1 onwards. To create client with protocol version '{protocol_version}', do the following:\n"
"""\
f"""\
from bentoml.grpc.utils import import_generated_stubs, import_grpc
pb, services = import_generated_stubs("v1alpha1")
pb, services = import_generated_stubs("{protocol_version}")
grpc, _ = import_grpc()
Expand Down

0 comments on commit 756e36e

Please sign in to comment.