Skip to content

Commit ef96101

Browse files
author
mingsing
committed
add StatusCode.UNKNOWN branch
Signed-off-by: mingsing <[email protected]>
1 parent dded008 commit ef96101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dapr/aio/clients/grpc/subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def next_message(self):
6767
return None
6868
return SubscriptionMessage(message.event_message)
6969
except AioRpcError as e:
70-
if e.code() == StatusCode.UNAVAILABLE:
70+
if e.code() == StatusCode.UNAVAILABLE or e.code() == StatusCode.UNKNOWN:
7171
print(
7272
f'gRPC error while reading from stream: {e.details()}, '
7373
f'Status Code: {e.code()}. '

0 commit comments

Comments
 (0)