Private
Public Access
1
0

Merge branch 'hotfix/v1.29'

This commit is contained in:
Sander Roosendaal
2017-02-26 20:09:44 +01:00

View File

@@ -363,8 +363,11 @@ def get_token(code):
token_json = response.json()
try:
status_code = token_json['status_code']
except KeyError:
status_code = response.status_code
# status_code = token_json['status_code']
except AttributeError:
# except KeyError:
return (0,response.text)
try:
status_code = token_json.status_code
except AttributeError: