Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilem Duha <vilem.duha@gmail.com>2019-06-01 19:21:40 +0300
committerVilem Duha <vilem.duha@gmail.com>2019-06-01 19:49:19 +0300
commit75fc9e45892dd8b011a4facf3d549b0df0d7a6dd (patch)
treecea8a61e85d5f6ee5baf9684a8c01fca0c0e2431 /blenderkit/bkit_oauth.py
parent07d74a9b2e341c2eea77404b25d45791e3c46296 (diff)
BlenderKit: fix a bug in text splitting(could run eternal while) and fix wrong argument in Oauth
Diffstat (limited to 'blenderkit/bkit_oauth.py')
-rw-r--r--blenderkit/bkit_oauth.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/blenderkit/bkit_oauth.py b/blenderkit/bkit_oauth.py
index 28ca2d89..6685ff2c 100644
--- a/blenderkit/bkit_oauth.py
+++ b/blenderkit/bkit_oauth.py
@@ -62,11 +62,10 @@ def refresh_token_thread():
def refresh_token(api_key_refresh):
- authenticator = oauth.SimpleOAuthAuthenticator(server_url=paths.get_bkit_url(), client_id=CLIENT_ID, ports=PORTS,
- redirect_url='')
+ authenticator = oauth.SimpleOAuthAuthenticator(server_url=paths.get_bkit_url(), client_id=CLIENT_ID, ports=PORTS)
auth_token, refresh_token = authenticator.get_refreshed_token(api_key_refresh)
if auth_token is not None and refresh_token is not None:
- tasks_queue.add_task((blenderkit.bkit_oauth.write_tokens, (auth_token, refresh_token)))
+ tasks_queue.add_task((write_tokens, (auth_token, refresh_token)))
def write_tokens(auth_token, refresh_token):