diff --git a/qiita_client/qiita_client.py b/qiita_client/qiita_client.py index f582a8a..f805047 100644 --- a/qiita_client/qiita_client.py +++ b/qiita_client/qiita_client.py @@ -217,7 +217,7 @@ def _request_oauth2(self, req, *args, **kwargs): except ValueError: r_json = None - if r_json and r_json()['error_description'] == \ + if r_json and r_json['error_description'] == \ 'Oauth2 error: token has timed out': # The token expired - get a new one and re-try the request self._fetch_token()