diff options
author | Ansem <[email protected]> | 2017-04-10 15:25:39 +0000 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-04-11 10:37:15 +0200 |
commit | 7c7cf8478d825f449443c2419cd6c8380a0b8629 (patch) | |
tree | 80d3c825a2fd2e800ab4608c567796aa32d23bc7 /mastodon | |
parent | e51e5cc52192da40c891b28d54a60f03c5763e97 (diff) | |
download | mastodon.py-7c7cf8478d825f449443c2419cd6c8380a0b8629.tar.gz |
Add general error message
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 2 |
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(" "))) |