Private
Public Access
1
0

fixing json error

This commit is contained in:
Sander Roosendaal
2020-01-01 15:23:26 +01:00
parent ad249b8c6d
commit 0ac7e5ee95

View File

@@ -821,7 +821,10 @@ def get_userid(access_token):
return 0
me_json = response.json()
try:
me_json = response.json()
except JSONDecodeError:
return 0
try:
res = me_json['data']['id']
except KeyError: