aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnsem <[email protected]>2017-04-10 15:25:39 +0000
committerLorenz Diener <[email protected]>2017-04-11 10:37:15 +0200
commit7c7cf8478d825f449443c2419cd6c8380a0b8629 (patch)
tree80d3c825a2fd2e800ab4608c567796aa32d23bc7
parente51e5cc52192da40c891b28d54a60f03c5763e97 (diff)
downloadmastodon.py-7c7cf8478d825f449443c2419cd6c8380a0b8629.tar.gz
Add general error message
-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)