From d1b691eea323ce970e0fe81cfc95343b40ef9bc0 Mon Sep 17 00:00:00 2001 From: Jose Navas Date: Fri, 15 Jul 2016 11:17:49 -0600 Subject: [PATCH] fix bug --- qiita_client/qiita_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()