diff options
| author | 2021-08-13 23:48:53 +0200 | |
|---|---|---|
| committer | 2021-08-13 23:48:53 +0200 | |
| commit | d6817258a59cdb2d9d3ab31a6e7f394cb0793b93 (patch) | |
| tree | 5e280e8b6693d9a4b3a0697fe97c6b0733135409 | |
| parent | Update reminders to reply instead of using a jump url to the origin message (diff) | |
Improve code consitency in remainders
| -rw-r--r-- | bot/exts/utils/reminders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py index 32e00bee1..66a0e6e92 100644 --- a/bot/exts/utils/reminders.py +++ b/bot/exts/utils/reminders.py @@ -8,7 +8,7 @@ from operator import itemgetter import discord from dateutil.parser import isoparse -from discord.ext.commands import Cog, Context, Greedy, HTTPException, group +from discord.ext.commands import Cog, Context, Greedy, group from bot.bot import Bot from bot.constants import Guild, Icons, MODERATION_ROLES, POSITIVE_REPLIES, Roles, STAFF_ROLES @@ -198,7 +198,7 @@ class Reminders(Cog): partial_message = channel.get_partial_message(int(jump_url.split("/")[-1])) try: await partial_message.reply(content=f"{additional_mentions}", embed=embed) - except HTTPException as e: + except discord.HTTPException as e: log.error( f"There was an error when trying to reply to a reminder invocation message, {e}, " "fall back to using jump_url" |