From 55695dab3c731a4edb141e239ced49d83e785543 Mon Sep 17 00:00:00 2001 From: z03h <7235242+z03h@users.noreply.github.com> Date: Tue, 29 Mar 2022 01:49:37 -0700 Subject: [PATCH] [commands] Check for None max_concurrency --- discord/ext/commands/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 8dfd1c6b0..db9f0a07f 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -519,9 +519,8 @@ class Command(_BaseCommand, Generic[CogT, P, T]): other.checks = self.checks.copy() if self._buckets.valid and not other._buckets.valid: other._buckets = self._buckets.copy() - if self._max_concurrency != other._max_concurrency: - # _max_concurrency won't be None at this point - other._max_concurrency = self._max_concurrency.copy() # type: ignore + if self._max_concurrency and self._max_concurrency != other._max_concurrency: + other._max_concurrency = self._max_concurrency.copy() try: other.on_error = self.on_error