[Bf-extensions-cvs] [f0c6a8cd] master: BlenderKit: only try to request profile for logged in users.

Vilém Duha noreply at git.blender.org
Fri Aug 16 23:34:07 CEST 2019


Commit: f0c6a8cdaf60de005a10f5785c39cf4f85f8479c
Author: Vilém Duha
Date:   Tue Aug 13 16:38:34 2019 +0200
Branches: master
https://developer.blender.org/rBAf0c6a8cdaf60de005a10f5785c39cf4f85f8479c

BlenderKit: only try to request profile for logged in users.

===================================================================

M	blenderkit/search.py

===================================================================

diff --git a/blenderkit/search.py b/blenderkit/search.py
index 064fd238..e81e456e 100644
--- a/blenderkit/search.py
+++ b/blenderkit/search.py
@@ -108,7 +108,8 @@ def fetch_server_data():
         # version_checker.check_version_thread(url, api_key, blenderkit)
         if user_preferences.enable_oauth:
             bkit_oauth.refresh_token_thread()
-        get_profile()
+        if api_key != '':
+            get_profile()
         categories.fetch_categories_thread(api_key)



More information about the Bf-extensions-cvs mailing list