tp bug fix
This commit is contained in:
@@ -67,8 +67,13 @@ def get_token(code):
|
|||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
}
|
}
|
||||||
|
|
||||||
response = requests.post("https://oauth.trainingpeaks.com/oauth/token",
|
try:
|
||||||
data=post_data)
|
response = requests.post(
|
||||||
|
"https://oauth.trainingpeaks.com/oauth/token",
|
||||||
|
data=post_data
|
||||||
|
)
|
||||||
|
except:
|
||||||
|
return 0,0,0
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user