diff options
author | 2021-10-19 04:55:55 +0530 | |
---|---|---|
committer | 2021-10-19 04:55:55 +0530 | |
commit | 67e304ec7eefad638fe264731f52e324bfd7fef0 (patch) | |
tree | d2c04ea05e0df7f46d6696bcd68b6e04cbcda8eb | |
parent | Refactor shorten_text utility function (diff) |
Removing config validation checks
-rw-r--r-- | bot/exts/moderation/incidents.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py index b62ba0629..805b516c9 100644 --- a/bot/exts/moderation/incidents.py +++ b/bot/exts/moderation/incidents.py @@ -177,11 +177,7 @@ async def make_message_link_embed(ctx: Context, message_link: str) -> Optional[d try: message: discord.Message = await MessageConverter().convert(ctx, message_link) except MessageNotFound: - try: - mod_logs_channel = ctx.bot.get_channel(Channels.mod_log) - except discord.NotFound: - log.exception(f"Mod-logs (<#{Channels.mod_log}> channel not found.") - return + mod_logs_channel = ctx.bot.get_channel(Channels.mod_log) last_100_logs: list[discord.Message] = await mod_logs_channel.history(limit=100).flatten() |