Skip to content

Commit

Permalink
rpc: async iterator close should happen silently
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 25, 2023
1 parent 38746ee commit 6772419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/python/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ async def aclose(self):
if self.__dict__[RpcPeer.PROPERTY_PROXY_PROPERTIES] and 'Symbol(Symbol.asyncIterator)' in self.__dict__[RpcPeer.PROPERTY_PROXY_PROPERTIES]:
try:
return await RpcProxyMethod(self, self.__dict__[RpcPeer.PROPERTY_PROXY_PROPERTIES]['Symbol(Symbol.asyncIterator)']['return'])()
except RPCResultError as e:
pass
except Exception:
return
raise Exception('RpcProxy is not an async iterable')

def __getattr__(self, name):
Expand Down

0 comments on commit 6772419

Please sign in to comment.