From 9e2f2cb3af30c9d4c6d3ff4f7850832c05488d6f Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 16 Sep 2023 22:34:33 -0400 Subject: [PATCH] Log suppressed autocomplete exceptions --- discord/app_commands/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/app_commands/tree.py b/discord/app_commands/tree.py index 5bdfbec58..c75682e0e 100644 --- a/discord/app_commands/tree.py +++ b/discord/app_commands/tree.py @@ -1240,7 +1240,7 @@ class CommandTree(Generic[ClientT]): await command._invoke_autocomplete(interaction, focused, namespace) except Exception: # Suppress exception since it can't be handled anyway. - pass + _log.exception('Ignoring exception in autocomplete for %r', command.qualified_name) return