changing add_efficiency cleaning up columns
This commit is contained in:
@@ -139,12 +139,12 @@ def imports_do_refresh_token(refreshtoken,oauth_data,access_token=''):
|
||||
if response.status_code == 200 or response.status_code == 201:
|
||||
token_json = response.json()
|
||||
else:
|
||||
raise NoTokenError
|
||||
raise NoTokenError("User has no token")
|
||||
|
||||
try:
|
||||
thetoken = token_json['access_token']
|
||||
except KeyError:
|
||||
raise NoTokenError
|
||||
raise NoTokenError("User has no token")
|
||||
|
||||
try:
|
||||
expires_in = token_json['expires_in']
|
||||
|
||||
Reference in New Issue
Block a user