diff --git a/rowers/runkeeperstuff.py b/rowers/runkeeperstuff.py index cadb1557..466709a8 100644 --- a/rowers/runkeeperstuff.py +++ b/rowers/runkeeperstuff.py @@ -274,7 +274,10 @@ def get_userid(access_token): response = requests.get(url,headers=headers) - me_json = response.json() + try: + me_json = response.json() + except: + return 0 try: res = me_json['userID']