diff options
| -rw-r--r-- | bot/exts/moderation/clean.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/bot/exts/moderation/clean.py b/bot/exts/moderation/clean.py index 950c0c82e..6fb33c692 100644 --- a/bot/exts/moderation/clean.py +++ b/bot/exts/moderation/clean.py @@ -2,6 +2,7 @@ import logging  import re  import time  from collections import defaultdict +from contextlib import suppress  from datetime import datetime  from itertools import islice  from typing import Any, Callable, DefaultDict, Iterable, List, Literal, Optional, TYPE_CHECKING, Tuple, Union @@ -362,7 +363,8 @@ class Clean(Cog):          logged = await self._log_clean(deleted_messages, channels, ctx)          if logged and is_mod_channel(ctx.channel): -            await ctx.message.add_reaction(Emojis.check_mark) +            with suppress(NotFound):  # Can happen if the invoker deleted their own messages. +                await ctx.message.add_reaction(Emojis.check_mark)      # region: Commands | 
