diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index 02f10466..fe42a915 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -1000,12 +1000,12 @@ def get_userid(access_token): try: me_json = response.json() - except JSONDecodeError: + except: return 0 try: res = me_json['data']['id'] except KeyError: - res = 0 + return 0 return res