Documented new error handling code
This commit is contained in:
pare
ead7b7fc5e
commit
20f5249c7d
S'han modificat 1 arxius amb 3 adicions i 0 eliminacions
|
@ -87,6 +87,9 @@ class Mastodon:
|
||||||
Logs in and sets access_token to what was returned.
|
Logs in and sets access_token to what was returned.
|
||||||
Can persist access token to file.
|
Can persist access token to file.
|
||||||
|
|
||||||
|
Will throw an exception if username / password are wrong, scopes are not
|
||||||
|
valid or granted scopes differ from requested.
|
||||||
|
|
||||||
Returns the access_token, as well.
|
Returns the access_token, as well.
|
||||||
"""
|
"""
|
||||||
params = self.__generate_params(locals())
|
params = self.__generate_params(locals())
|
||||||
|
|
Loading…
Referencia en una nova incidència