Skip to content

Commit

Permalink
Fix #454
Browse files Browse the repository at this point in the history
  • Loading branch information
dongweiming authored and dongweiming committed Apr 24, 2020
1 parent b16e5bd commit 95d3457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiomysql/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ async def _read_packet(self, packet_type=MysqlPacket):
async def _read_bytes(self, num_bytes):
try:
data = await self._reader.readexactly(num_bytes)
except asyncio.streams.IncompleteReadError as e:
except asyncio.IncompleteReadError as e:
msg = "Lost connection to MySQL server during query"
raise OperationalError(2013, msg) from e
except (IOError, OSError) as e:
Expand Down

0 comments on commit 95d3457

Please sign in to comment.