diff options
| author | 2021-01-17 09:14:52 +0300 | |
|---|---|---|
| committer | 2021-01-17 09:14:52 +0300 | |
| commit | 9aa481e274931a13769478325234b49e83e85980 (patch) | |
| tree | d95c48823502b7b37c285a769e06121d4491c1be | |
| parent | Adds Return On Tag Matches (diff) | |
Checks If Similar Command Is None
| -rw-r--r-- | bot/exts/backend/error_handler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py index e42c8c6e6..da264ce2f 100644 --- a/bot/exts/backend/error_handler.py +++ b/bot/exts/backend/error_handler.py @@ -181,6 +181,9 @@ class ErrorHandler(Cog): similar_command_name = similar_command_data[0] similar_command = self.bot.get_command(similar_command_name) + if not similar_command: + return + log_msg = "Cancelling attempt to suggest a command due to failed checks." try: if not await similar_command.can_run(ctx): |