Skip to content

Commit

Permalink
Documented new error handling code
Browse files Browse the repository at this point in the history
  • Loading branch information
halcy committed Nov 24, 2016
1 parent ead7b7f commit 20f5249
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mastodon/Mastodon.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def log_in(self, username, password, scopes = ['read', 'write', 'follow'], to_fi
Logs in and sets access_token to what was returned.
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.
"""
params = self.__generate_params(locals())
Expand Down

0 comments on commit 20f5249

Please sign in to comment.