Remove InvalidEventName exception due to it being unused

This commit is contained in:
Rapptz 2015-10-27 18:03:51 -04:00
parent f770fc1c67
commit 6ae6bd8e6d
3 changed files with 1 additions and 9 deletions

View File

@ -27,7 +27,7 @@ DEALINGS IN THE SOFTWARE.
from __future__ import print_function from __future__ import print_function
from . import endpoints from . import endpoints
from .errors import InvalidEventName, InvalidDestination, GatewayNotFound from .errors import *
from .user import User from .user import User
from .channel import Channel, PrivateChannel from .channel import Channel, PrivateChannel
from .server import Server from .server import Server

View File

@ -24,10 +24,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE. DEALINGS IN THE SOFTWARE.
""" """
class InvalidEventName(Exception):
"""Thrown when an event from :meth:`Client.event` has an invalid name."""
pass
class InvalidDestination(Exception): class InvalidDestination(Exception):
"""Thrown when the destination from :meth:`Client.send_message` is invalid.""" """Thrown when the destination from :meth:`Client.send_message` is invalid."""
pass pass

View File

@ -282,10 +282,6 @@ Exceptions
The following exceptions are thrown by the library. The following exceptions are thrown by the library.
.. autoclass:: InvalidEventName
:members:
.. autoclass:: InvalidDestination .. autoclass:: InvalidDestination
:members: :members: