fix
This commit is contained in:
@@ -1000,12 +1000,12 @@ def get_userid(access_token):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
me_json = response.json()
|
me_json = response.json()
|
||||||
except JSONDecodeError:
|
except:
|
||||||
return 0
|
return 0
|
||||||
try:
|
try:
|
||||||
res = me_json['data']['id']
|
res = me_json['data']['id']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
res = 0
|
return 0
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user