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