Skip to content

Commit c4717d2

Browse files
authored
Merge pull request #7 from josenavas/fix-dict-error
Fix bug
2 parents e57c90a + d1b691e commit c4717d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiita_client/qiita_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def _request_oauth2(self, req, *args, **kwargs):
217217
except ValueError:
218218
r_json = None
219219

220-
if r_json and r_json()['error_description'] == \
220+
if r_json and r_json['error_description'] == \
221221
'Oauth2 error: token has timed out':
222222
# The token expired - get a new one and re-try the request
223223
self._fetch_token()

0 commit comments

Comments
 (0)