Browse Source

removed overridding the built in error with asyncios version.

tags/v1.8.0
Roxie Gibson 6 years ago
parent
commit
dc6056414c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      roxbot/utils.py

+ 2
- 2
roxbot/utils.py View File

from asyncio import TimeoutError
import asyncio




async def delete_option(bot, ctx, message, delete_emoji, timeout=20): 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, bot.user)
await message.remove_reaction(delete_emoji, ctx.author) await message.remove_reaction(delete_emoji, ctx.author)
return await message.edit(content="{} requested output be deleted.".format(ctx.author), embed=None) 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) await message.remove_reaction(delete_emoji, bot.user)





Loading…
Cancel
Save