Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytoniq/liteclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def send_and_encrypt(self, data: bytes, qid: str) -> asyncio.Future:
async def receive(self, data_len: int) -> bytes:
try:
data = await self.reader.readexactly(data_len)
except ConnectionError:
except (ConnectionError|asyncio.IncompleteReadError):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this not gonna work with pipe, try comma:

        except (ConnectionError, IncompleteReadError):

await self.close()
raise
return data
Expand Down