small fixes
This commit is contained in:
@@ -91,7 +91,7 @@ def get_token(code): # pragma: no cover
|
||||
thetoken = token_json['access_token']
|
||||
expires_in = token_json['expires_in']
|
||||
user_id = token_json['x_user_id']
|
||||
except KeyError:
|
||||
except (KeyError,JSONDecodeError):
|
||||
thetoken = 0
|
||||
expires_in = 0
|
||||
user_id = 0
|
||||
|
||||
Reference in New Issue
Block a user