From 4914e7402950892c298a10283fd6b9c6dddf4bf7 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 17 Jul 2022 23:46:47 -0400 Subject: [PATCH] Change variable name for binding error handler to be more generic --- discord/app_commands/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index 4ab57f091..9e94cc172 100644 --- a/discord/app_commands/commands.py +++ b/discord/app_commands/commands.py @@ -613,9 +613,9 @@ class Command(Generic[GroupT, P, T]): if parent.parent is not None: await parent.parent.on_error(interaction, error) - cog_error = getattr(self.binding, '__app_commands_error_handler__', None) - if cog_error is not None: - await cog_error(interaction, error) + binding_error_handler = getattr(self.binding, '__app_commands_error_handler__', None) + if binding_error_handler is not None: + await binding_error_handler(interaction, error) def _has_any_error_handlers(self) -> bool: if self.on_error is not None: