From 20f5249c7dfedee4fef7f01516645178bfc12f3d Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Thu, 24 Nov 2016 12:08:32 +0100 Subject: [PATCH] Documented new error handling code --- mastodon/Mastodon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 08821b8..a00f249 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -87,6 +87,9 @@ class Mastodon: Logs in and sets access_token to what was returned. Can persist access token to file. + Will throw an exception if username / password are wrong, scopes are not + valid or granted scopes differ from requested. + Returns the access_token, as well. """ params = self.__generate_params(locals())