From 8074801365f99e97efa5e9c98c643a2a71ff8749 Mon Sep 17 00:00:00 2001 From: JohnLai Date: Thu, 26 Sep 2024 17:09:00 +0800 Subject: [PATCH] Update protoc-gen-custom_grpc --- python/_build/protoc-gen-custom_grpc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/_build/protoc-gen-custom_grpc b/python/_build/protoc-gen-custom_grpc index 287b95b..a1d9de0 100755 --- a/python/_build/protoc-gen-custom_grpc +++ b/python/_build/protoc-gen-custom_grpc @@ -51,8 +51,9 @@ def find_type_in_file(proto_file: FileDescriptorProto, type_name: str) -> Option def find_type(package: str, type_name: str) -> Tuple[FileDescriptorProto, Union[DescriptorProto, EnumDescriptorProto]]: for file in _REQUEST.proto_file: - if file.package == package and (type := find_type_in_file(file, type_name)): - return file, type + type_ = find_type_in_file(file, type_name) + if file.package == package and type_: + return file, type_ raise Exception(f'Type {package}.{type_name} not found')