removing try / except TP
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user