aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2022-09-19 09:08:49 +0100
committerGravatar GitHub <[email protected]>2022-09-19 09:08:49 +0100
commitb6c2054b94c9b70fec203d370fc049bc6ac5010c (patch)
tree46c45c7219cbf7f5a3de2b8571bb8c1ff8790ebb
parentCheck for commands being None in try_get_tag and try_silence (diff)
Return None instead of False in try_get_tag
-rw-r--r--bot/exts/backend/error_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py
index 0321134ea..a23d7c9fc 100644
--- a/bot/exts/backend/error_handler.py
+++ b/bot/exts/backend/error_handler.py
@@ -170,7 +170,7 @@ class ErrorHandler(Cog):
tags_get_command = self.bot.get_command("tags get")
if not tags_get_command:
log.debug("Not attempting to parse message as a tag as could not find `tags get` command.")
- return False
+ return
ctx.invoked_from_error_handler = True