Explorar el Código

removed overridding the built in error with asyncios version.

tags/v1.8.0
Roxie Gibson hace 6 años
padre
commit
dc6056414c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      roxbot/utils.py

+ 2
- 2
roxbot/utils.py Ver fichero

@@ -1,4 +1,4 @@
from asyncio import TimeoutError
import asyncio


async def delete_option(bot, ctx, message, delete_emoji, timeout=20):
@@ -14,7 +14,7 @@ async def delete_option(bot, ctx, message, delete_emoji, timeout=20):
await message.remove_reaction(delete_emoji, bot.user)
await message.remove_reaction(delete_emoji, ctx.author)
return await message.edit(content="{} requested output be deleted.".format(ctx.author), embed=None)
except TimeoutError:
except asyncio.TimeoutError:
await message.remove_reaction(delete_emoji, bot.user)



Cargando…
Cancelar
Guardar