mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 08:17:47 +00:00
Import ABC from collections.abc instead of collections
This is for Python 3.9 compatibility.
This commit is contained in:
parent
1b4cac92fc
commit
25b8adc404
@ -792,7 +792,7 @@ class BotBase(GroupMixin):
|
||||
except TypeError:
|
||||
# It's possible that a generator raised this exception. Don't
|
||||
# replace it with our own error if that's the case.
|
||||
if isinstance(ret, collections.Iterable):
|
||||
if isinstance(ret, collections.abc.Iterable):
|
||||
raise
|
||||
|
||||
raise TypeError("command_prefix must be plain string, iterable of strings, or callable "
|
||||
|
Loading…
x
Reference in New Issue
Block a user