aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 98a371e..ef6cb1f 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -224,6 +224,8 @@ class Mastodon:
224 raise MastodonIllegalArgumentError('Invalid user name, password, or redirect_uris: %s' % e) 224 raise MastodonIllegalArgumentError('Invalid user name, password, or redirect_uris: %s' % e)
225 elif code is not None: 225 elif code is not None:
226 raise MastodonIllegalArgumentError('Invalid access token or redirect_uris: %s' % e) 226 raise MastodonIllegalArgumentError('Invalid access token or redirect_uris: %s' % e)
227 else:
228 raise MastodonIllegalArgumentError('Invalid request: %s' % e)
227 229
228 requested_scopes = " ".join(sorted(scopes)) 230 requested_scopes = " ".join(sorted(scopes))
229 received_scopes = " ".join(sorted(response["scope"].split(" "))) 231 received_scopes = " ".join(sorted(response["scope"].split(" ")))
Powered by cgit v1.2.3 (git 2.41.0)