Timeout (10s) on store API calls + better exception handling

We now log connection errors, timeouts, and other Requests errors, and
return None so that the login flow of the user can continue.
This commit is contained in:
2017-05-05 12:55:05 +02:00
parent 870800e8d2
commit b1b91a7b29
2 changed files with 17 additions and 2 deletions

View File

@@ -148,6 +148,7 @@ URLER_SERVICE_AUTH_TOKEN = None
BLENDER_CLOUD_ADDON_VERSION = '1.4'
EXTERNAL_SUBSCRIPTIONS_MANAGEMENT_SERVER = 'https://store.blender.org/api/'
EXTERNAL_SUBSCRIPTIONS_TIMEOUT_SECS = 10
# Certificate file for communication with other systems.
TLS_CERT_FILE = requests.certs.where()