aboutsummaryrefslogtreecommitdiff
path: root/discord/errors.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-11 19:53:29 -0500
committerRapptz <[email protected]>2017-01-11 19:53:48 -0500
commit06ca5184596d187b1737484b265d847b8efb3dc1 (patch)
treec6f546a733c0e95ca7e17206946f7c05131ec87b /discord/errors.py
parentAllow HistoryIterator to be flattened into a list. (diff)
downloaddiscord.py-06ca5184596d187b1737484b265d847b8efb3dc1.tar.xz
discord.py-06ca5184596d187b1737484b265d847b8efb3dc1.zip
Rename NoMoreMessages to NoMoreItems.
Diffstat (limited to 'discord/errors.py')
-rw-r--r--discord/errors.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/discord/errors.py b/discord/errors.py
index 46751b62..795c0bf6 100644
--- a/discord/errors.py
+++ b/discord/errors.py
@@ -38,9 +38,10 @@ class ClientException(DiscordException):
"""
pass
-class NoMoreMessages(DiscordException):
- """Exception that is thrown when a ``history`` operation has no more
- messages. This is only exposed for Python 3.4 only.
+class NoMoreItems(DiscordException):
+ """Exception that is thrown when an async iteration operation has no more
+ items. This is mainly exposed for Python 3.4 support where `StopAsyncIteration`
+ is not provided.
"""
pass