Add general error message
This commit is contained in:
pare
0d251bbf46
commit
2ecac20890
S'han modificat 1 arxius amb 2 adicions i 0 eliminacions
|
@ -223,6 +223,8 @@ class Mastodon:
|
||||||
raise MastodonIllegalArgumentError('Invalid user name, password, or redirect_uris: %s' % e)
|
raise MastodonIllegalArgumentError('Invalid user name, password, or redirect_uris: %s' % e)
|
||||||
elif code is not None:
|
elif code is not None:
|
||||||
raise MastodonIllegalArgumentError('Invalid access token or redirect_uris: %s' % e)
|
raise MastodonIllegalArgumentError('Invalid access token or redirect_uris: %s' % e)
|
||||||
|
else:
|
||||||
|
raise MastodonIllegalArgumentError('Invalid request: %s' % e)
|
||||||
|
|
||||||
requested_scopes = " ".join(sorted(scopes))
|
requested_scopes = " ".join(sorted(scopes))
|
||||||
received_scopes = " ".join(sorted(response["scope"].split(" ")))
|
received_scopes = " ".join(sorted(response["scope"].split(" ")))
|
||||||
|
|
Loading…
Referencia en una nova incidència