mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-22 11:54:16 -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):
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user