mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-22 03:44:18 -05:00
fixed references to discord.errors.HTTPException
This commit is contained in:
parent
15fe9e6e03
commit
63dc799fef
4
bot.py
4
bot.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user