Private
Public Access
1
0

removing try / except TP

This commit is contained in:
Sander Roosendaal
2020-06-04 20:55:31 +02:00
parent ba7c746ac2
commit a21da7472e

View File

@@ -67,14 +67,11 @@ def get_token(code):
'Content-Type': 'application/x-www-form-urlencoded',
}
try:
response = requests.post(
"https://oauth.trainingpeaks.com/oauth/token",
data=post_data
)
except:
return 0,0,0
response = requests.post(
"https://oauth.trainingpeaks.com/oauth/token",
data=post_data
)
try:
token_json = response.json()