aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-10-27 23:02:50 -0400
committerRapptz <[email protected]>2015-10-27 23:02:50 -0400
commit822e54200dcb28512be026be95652524cc99f42c (patch)
treef02c706e60d293a4ed9ec9b870a39bcbd8e239a8
parentAdd InvalidArgument exception and change exceptions thrown. (diff)
downloaddiscord.py-822e54200dcb28512be026be95652524cc99f42c.tar.xz
discord.py-822e54200dcb28512be026be95652524cc99f42c.zip
Document Client.login raising exceptions.
-rw-r--r--discord/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 32eda0c0..67990698 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.