Fix more deprecation warnings for 3.8

This commit is contained in:
Rapptz committed 2019-11-26 05:19:11 -05:00
1 parent f554819506
commit c62b6c3e88
3 files changed
+3 -3

No files matched your search

+1 -1
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