mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Remove NoMoreItems
This commit is contained in:
parent
b77cf500a2
commit
01906f37f1
@ -40,7 +40,6 @@ if TYPE_CHECKING:
|
||||
__all__ = (
|
||||
'DiscordException',
|
||||
'ClientException',
|
||||
'NoMoreItems',
|
||||
'GatewayNotFound',
|
||||
'HTTPException',
|
||||
'Forbidden',
|
||||
@ -72,12 +71,6 @@ class ClientException(DiscordException):
|
||||
pass
|
||||
|
||||
|
||||
class NoMoreItems(DiscordException):
|
||||
"""Exception that is raised when an async iteration operation has no more items."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class GatewayNotFound(DiscordException):
|
||||
"""An exception that is raised when the gateway for Discord could not be found"""
|
||||
|
||||
|
@ -4053,8 +4053,6 @@ The following exceptions are thrown by the library.
|
||||
|
||||
.. autoexception:: LoginFailure
|
||||
|
||||
.. autoexception:: NoMoreItems
|
||||
|
||||
.. autoexception:: HTTPException
|
||||
:members:
|
||||
|
||||
@ -4091,7 +4089,6 @@ Exception Hierarchy
|
||||
- :exc:`ConnectionClosed`
|
||||
- :exc:`PrivilegedIntentsRequired`
|
||||
- :exc:`InteractionResponded`
|
||||
- :exc:`NoMoreItems`
|
||||
- :exc:`GatewayNotFound`
|
||||
- :exc:`HTTPException`
|
||||
- :exc:`Forbidden`
|
||||
|
@ -791,6 +791,9 @@ The return type of the following methods has been changed to an :term:`asynchron
|
||||
- :meth:`Guild.fetch_members`
|
||||
- :meth:`Reaction.users`
|
||||
|
||||
The ``NoMoreItems`` exception was removed as calling :func:`anext` or :meth:`~object.__anext__` on an
|
||||
:term:`asynchronous iterator` will now raise :class:`StopAsyncIteration`.
|
||||
|
||||
Removal of ``InvalidArgument`` Exception
|
||||
-------------------------------------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user