Browse Source
[commands] Check for None max_concurrency
pull/7798/head
z03h
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
3 deletions
-
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 |
|
|
|