diff options
| author | Rapptz <[email protected]> | 2015-10-27 18:03:51 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-27 18:03:51 -0400 |
| commit | 6ae6bd8e6d14f60c7d5c8febeaa26fbc67a6c283 (patch) | |
| tree | d40fd613cea71b2f1c20f72d35aa6ccf08233db1 | |
| parent | Add discord.Object to the documentation. (diff) | |
| download | discord.py-6ae6bd8e6d14f60c7d5c8febeaa26fbc67a6c283.tar.xz discord.py-6ae6bd8e6d14f60c7d5c8febeaa26fbc67a6c283.zip | |
Remove InvalidEventName exception due to it being unused
| -rw-r--r-- | discord/client.py | 2 | ||||
| -rw-r--r-- | discord/errors.py | 4 | ||||
| -rw-r--r-- | docs/api.rst | 4 |
3 files changed, 1 insertions, 9 deletions
diff --git a/discord/client.py b/discord/client.py index 4bd8c6be..2497e0f8 100644 --- a/discord/client.py +++ b/discord/client.py @@ -27,7 +27,7 @@ DEALINGS IN THE SOFTWARE. from __future__ import print_function from . import endpoints -from .errors import InvalidEventName, InvalidDestination, GatewayNotFound +from .errors import * from .user import User from .channel import Channel, PrivateChannel from .server import Server diff --git a/discord/errors.py b/discord/errors.py index 6a016149..36ec3b48 100644 --- a/discord/errors.py +++ b/discord/errors.py @@ -24,10 +24,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -class InvalidEventName(Exception): - """Thrown when an event from :meth:`Client.event` has an invalid name.""" - pass - class InvalidDestination(Exception): """Thrown when the destination from :meth:`Client.send_message` is invalid.""" pass diff --git a/docs/api.rst b/docs/api.rst index b659fdce..1ab68ca2 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -282,10 +282,6 @@ Exceptions The following exceptions are thrown by the library. - -.. autoclass:: InvalidEventName - :members: - .. autoclass:: InvalidDestination :members: |