runkeeper
This commit is contained in:
@@ -274,7 +274,10 @@ def get_userid(access_token):
|
|||||||
response = requests.get(url,headers=headers)
|
response = requests.get(url,headers=headers)
|
||||||
|
|
||||||
|
|
||||||
me_json = response.json()
|
try:
|
||||||
|
me_json = response.json()
|
||||||
|
except:
|
||||||
|
return 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
res = me_json['userID']
|
res = me_json['userID']
|
||||||
|
|||||||
Reference in New Issue
Block a user