From 3d63b6f9f67f7ef7e8a8122f588b611fcdfd5d59 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 29 Sep 2019 21:37:17 +0100 Subject: [PATCH] bug fix --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 2039b56..25a0911 100755 --- a/app.py +++ b/app.py @@ -321,7 +321,7 @@ def oauth_api_request(params): client_secret=client_secret, resource_owner_key=session['owner_key'], resource_owner_secret=session['owner_secret']) - r = oauth.get(url) + r = oauth.get(url, timeout=2) reply = r.json() return reply @@ -349,7 +349,7 @@ def get_token(): 'format': 'json', 'formatversion': 2, } - reply = oauth_api_request(params, timeout=2) + reply = oauth_api_request(params) token = reply['query']['tokens']['csrftoken'] return token