Private
Public Access
1
0

tp bug fix

This commit is contained in:
Sander Roosendaal
2020-06-01 08:02:27 +02:00
parent d20272d051
commit 85f3dd4858

View File

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