From 1900855ba55e62a31c122fae5b6caf3456463e11 Mon Sep 17 00:00:00 2001 From: Ansem Date: Mon, 10 Apr 2017 15:25:39 +0000 Subject: [PATCH] Add general error message --- mastodon/Mastodon.py | 2 ++ 1 file changed, 2 insertions(+) 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(" ")))