1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-11-13 00:26:53 -05:00

fixed references to discord.errors.HTTPException

This commit is contained in:
Zac Herd 2016-04-03 16:55:38 +01:00
parent 15fe9e6e03
commit 63dc799fef

4
bot.py
View File

@ -166,7 +166,7 @@ def on_message(message):
for attempt in range(5):
try:
yield from client.send_message(message.author, msg[0] + ' says "' + msg[1] + '"')
except HTTPException:
except discord.errors.HTTPException:
continue
else:
break
@ -306,7 +306,7 @@ def on_message(message):
for attempt in range(5):
try:
yield from client.send_message(message.channel, response)
except HTTPException:
except discord.errors.HTTPException:
continue
else:
break