Skip to content

Commit 95d3457

Browse files
dongweimingdongweiming
authored andcommitted
Fix #454
1 parent b16e5bd commit 95d3457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiomysql/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ async def _read_packet(self, packet_type=MysqlPacket):
596596
async def _read_bytes(self, num_bytes):
597597
try:
598598
data = await self._reader.readexactly(num_bytes)
599-
except asyncio.streams.IncompleteReadError as e:
599+
except asyncio.IncompleteReadError as e:
600600
msg = "Lost connection to MySQL server during query"
601601
raise OperationalError(2013, msg) from e
602602
except (IOError, OSError) as e:

0 commit comments

Comments
 (0)