From 7c7cf8478d825f449443c2419cd6c8380a0b8629 Mon Sep 17 00:00:00 2001 From: Ansem Date: Mon, 10 Apr 2017 15:25:39 +0000 Subject: Add general error message --- mastodon/Mastodon.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mastodon') 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: raise MastodonIllegalArgumentError('Invalid user name, password, or redirect_uris: %s' % e) elif code is not None: raise MastodonIllegalArgumentError('Invalid access token or redirect_uris: %s' % e) + else: + raise MastodonIllegalArgumentError('Invalid request: %s' % e) requested_scopes = " ".join(sorted(scopes)) received_scopes = " ".join(sorted(response["scope"].split(" "))) -- cgit v1.2.3