1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-11-22 20:00:00 -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): for attempt in range(5):
try: try:
yield from client.send_message(message.author, msg[0] + ' says "' + msg[1] + '"') yield from client.send_message(message.author, msg[0] + ' says "' + msg[1] + '"')
except HTTPException: except discord.errors.HTTPException:
continue continue
else: else:
break break
@ -306,7 +306,7 @@ def on_message(message):
for attempt in range(5): for attempt in range(5):
try: try:
yield from client.send_message(message.channel, response) yield from client.send_message(message.channel, response)
except HTTPException: except discord.errors.HTTPException:
continue continue
else: else:
break break