diff options
author | 2021-02-19 17:00:46 +0200 | |
---|---|---|
committer | 2021-02-19 17:15:58 +0200 | |
commit | d3aa3f1ca261b7b2b4f2d690d51c2479f6324bd7 (patch) | |
tree | 5055bfac6b5b5221eea674411b602f97ba708a57 | |
parent | Remove verification channel special case from error handler tests (diff) |
Remove unnecessary ResponseCodeError suppress
-rw-r--r-- | bot/exts/backend/error_handler.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py index 5351f8267..8faf46b50 100644 --- a/bot/exts/backend/error_handler.py +++ b/bot/exts/backend/error_handler.py @@ -1,4 +1,3 @@ -import contextlib import difflib import logging import random @@ -167,9 +166,8 @@ class ErrorHandler(Cog): f"and the fallback tag failed validation in TagNameConverter." ) else: - with contextlib.suppress(ResponseCodeError): - if await ctx.invoke(tags_get_command, tag_name=tag_name): - return + if await ctx.invoke(tags_get_command, tag_name=tag_name): + return if not any(role.id in MODERATION_ROLES for role in ctx.author.roles): await self.send_command_suggestion(ctx, ctx.invoked_with) |