Browse Source

Replace hasattr with try except in chunker.

pull/572/head
Rapptz 8 years ago
parent
commit
d7153b1b5c
  1. 4
      discord/client.py

4
discord/client.py

@ -129,9 +129,9 @@ class Client:
@asyncio.coroutine
def _chunker(self, guild):
if hasattr(guild, 'id'):
try:
guild_id = guild.id
else:
except AttributeError:
guild_id = [s.id for s in guild]
payload = {

Loading…
Cancel
Save