Skip to content

Commit 8df806b

Browse files
committed
raise exception while parse incoming message
1 parent 7f94fe7 commit 8df806b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb/_grpc/grpcwrapper/ydb_topic.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from . import ydb_topic_public_types
1212
from ... import scheme
13+
from ... import issues
1314

1415
# Workaround for good IDE and universal for runtime
1516
if typing.TYPE_CHECKING:
@@ -739,6 +740,10 @@ def from_proto(
739740
msg.partition_session_status_response
740741
),
741742
)
743+
else:
744+
raise issues.UnexpectedGrpcMessage(
745+
"Unexpected message while parse ReaderMessagesFromServerToClient: '%s'" % mess_type
746+
)
742747

743748

744749
ReaderMessagesFromClientToServer = Union[

0 commit comments

Comments
 (0)