Merge tag 'deleteconfirm' into develop
raise error404 in a few places
This commit is contained in:
@@ -447,7 +447,12 @@ def get_username(access_token):
|
||||
|
||||
me_json = response.json()
|
||||
|
||||
return me_json['data']['username']
|
||||
try:
|
||||
res = me_json['data']['username']
|
||||
except KeyError:
|
||||
res = None
|
||||
|
||||
return res
|
||||
|
||||
# Get user id, having access token
|
||||
# Handy for checking if the API access is working
|
||||
|
||||
Reference in New Issue
Block a user