Skip to content

Commit

Permalink
Merge pull request #460 from dongweiming/python38
Browse files Browse the repository at this point in the history
Fix: #454
  • Loading branch information
webknjaz committed Apr 24, 2020
2 parents b16e5bd + 95d3457 commit 4291449
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 4291449

Please sign in to comment.