tp bug fix
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user