Skip to content

Commit

Permalink
fix: issue 411
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Early committed Mar 17, 2022
1 parent b3decdb commit 4b7e0b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions requests_oauthlib/oauth2_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,14 +529,14 @@ def request(
token = self.refresh_token(
self.auto_refresh_url, auth=auth, **kwargs
)
url, headers, data = self._client.add_token(
url, http_method=method, body=data, headers=headers
)
if self.token_updater:
log.debug(
"Updating token to %s using %s.", token, self.token_updater
)
self.token_updater(token)
url, headers, data = self._client.add_token(
url, http_method=method, body=data, headers=headers
)
else:
raise TokenUpdated(token)
else:
Expand Down

0 comments on commit 4b7e0b2

Please sign in to comment.