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,13 +67,10 @@ def get_token(code):
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
} }
try:
response = requests.post( response = requests.post(
"https://oauth.trainingpeaks.com/oauth/token", "https://oauth.trainingpeaks.com/oauth/token",
data=post_data data=post_data
) )
except:
return 0,0,0
try: try: