From 756e36ea0c365b70bcfad5257bd949cf996f4309 Mon Sep 17 00:00:00 2001 From: Aaron Pham <29749331+aarnphm@users.noreply.github.com> Date: Fri, 9 Dec 2022 17:29:37 -0800 Subject: [PATCH] chore: update exception message. --- src/bentoml/_internal/client/grpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bentoml/_internal/client/grpc.py b/src/bentoml/_internal/client/grpc.py index 94081baf20e..cfa9e138687 100644 --- a/src/bentoml/_internal/client/grpc.py +++ b/src/bentoml/_internal/client/grpc.py @@ -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()