diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index 5d184895..87895291 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -821,7 +821,10 @@ def get_userid(access_token): return 0 - me_json = response.json() + try: + me_json = response.json() + except JSONDecodeError: + return 0 try: res = me_json['data']['id'] except KeyError: