mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
[commands] Check for None max_concurrency
This commit is contained in:
parent
4fd2d5fdfd
commit
55695dab3c
@ -519,9 +519,8 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
|
|||||||
other.checks = self.checks.copy()
|
other.checks = self.checks.copy()
|
||||||
if self._buckets.valid and not other._buckets.valid:
|
if self._buckets.valid and not other._buckets.valid:
|
||||||
other._buckets = self._buckets.copy()
|
other._buckets = self._buckets.copy()
|
||||||
if self._max_concurrency != other._max_concurrency:
|
if self._max_concurrency and self._max_concurrency != other._max_concurrency:
|
||||||
# _max_concurrency won't be None at this point
|
other._max_concurrency = self._max_concurrency.copy()
|
||||||
other._max_concurrency = self._max_concurrency.copy() # type: ignore
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
other.on_error = self.on_error
|
other.on_error = self.on_error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user