Private
Public Access
1
0

Merge branch 'hotfix/c2fix'

This commit is contained in:
Sander Roosendaal
2017-02-25 19:54:47 +01:00

View File

@@ -351,7 +351,12 @@ def get_token(code):
token_json = response.json()
if token_json['status_code'] == 200:
try:
status_code = token_json['status_code']
except KeyError:
status_code = token_json.status_code
if status_code == 200:
thetoken = token_json['access_token']
expires_in = token_json['expires_in']
refresh_token = token_json['refresh_token']