From 6ae6bd8e6d14f60c7d5c8febeaa26fbc67a6c283 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 27 Oct 2015 18:03:51 -0400 Subject: [PATCH] Remove InvalidEventName exception due to it being unused --- discord/client.py | 2 +- discord/errors.py | 4 ---- docs/api.rst | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/discord/client.py b/discord/client.py index 4bd8c6be9..2497e0f89 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 6a016149f..36ec3b486 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 b659fdce5..1ab68ca25 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: