Private
Public Access
1
0

changing add_efficiency cleaning up columns

This commit is contained in:
Sander Roosendaal
2018-07-12 16:57:41 +02:00
parent 323c1e4c0c
commit a44981dda6
2 changed files with 17 additions and 3 deletions

View File

@@ -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']