Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-07-16 22:28:59 +02:00
parent 4b192addf2
commit 7ed48f3aa7
3 changed files with 12 additions and 4 deletions

View File

@@ -698,8 +698,12 @@ def handle_get_garmin_file(client_id,
regex = '.*\?id=(\d+)'
m = re.compile(regex).match(url).group(1)
garminid = int(m)
try:
m = re.compile(regex).match(url).group(1)
garminid = int(m)
except AttributeError:
garminid = ''
garmin = OAuth1Session(client_id,
client_secret=client_secret,