Fix more deprecation warnings for 3.8

This commit is contained in:
Rapptz
2019-11-26 05:19:11 -05:00
parent f554819506
commit c62b6c3e88
3 changed files with 3 additions and 3 deletions

View File

@ -744,7 +744,7 @@ class DiscordVoiceWebSocket(websockets.client.WebSocketClientProtocol):
async def poll_event(self):
try:
msg = await asyncio.wait_for(self.recv(), timeout=30.0, loop=self.loop)
msg = await asyncio.wait_for(self.recv(), timeout=30.0)
await self.received_message(json.loads(msg))
except websockets.exceptions.ConnectionClosed as exc:
raise ConnectionClosed(exc, shard_id=None) from exc