Skip to content

Commit

Permalink
Remove double process_response function call
Browse files Browse the repository at this point in the history
since it's called in anon_post already
  • Loading branch information
l-n-s authored and ihabunek committed Sep 3, 2019
1 parent 6f8cd86 commit 616483d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions toot/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def login(app, username, password):
if response.is_redirect:
raise AuthenticationError()

return http.process_response(response).json()
return response.json()


def get_browser_login_url(app):
Expand All @@ -79,9 +79,7 @@ def request_access_token(app, authorization_code):
'redirect_uri': 'urn:ietf:wg:oauth:2.0:oob',
}

response = http.anon_post(url, data, allow_redirects=False)

return http.process_response(response).json()
return http.anon_post(url, data, allow_redirects=False).json()


def post_status(
Expand Down

0 comments on commit 616483d

Please sign in to comment.