From 822e54200dcb28512be026be95652524cc99f42c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 27 Oct 2015 23:02:50 -0400 Subject: [PATCH] Document Client.login raising exceptions. --- discord/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index 32eda0c04..679906981 100644 --- a/discord/client.py +++ b/discord/client.py @@ -735,7 +735,8 @@ class Client(object): the connection to Discord. After this function is called, :attr:`is_logged_in` returns True if no - errors occur. + errors occur. If an error occurs during the login process, then + :exc:`HTTPException` is raised. This function raises :exc:`GatewayNotFound` if it was unavailable to connect to a websocket gateway.