Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions qiita_plugins/qiita_client/qiita_client/qiita_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def _request_oauth2(self, req, *args, **kwargs):
'Oauth2 error: token has timed out':
# The token expired - get a new one and re-try the request
self._fetch_token()
kwargs['headers']['Authorization'] = 'Bearer %s' % self._token
r = req(*args, **kwargs)
return r

Expand Down