From 6ae6bd8e6d14f60c7d5c8febeaa26fbc67a6c283 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 27 Oct 2015 18:03:51 -0400 Subject: Remove InvalidEventName exception due to it being unused --- discord/client.py | 2 +- discord/errors.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'discord') 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 -- cgit v1.2.3