diff --git a/rowers/polarstuff.py b/rowers/polarstuff.py index 384a9f03..24c3c833 100644 --- a/rowers/polarstuff.py +++ b/rowers/polarstuff.py @@ -91,7 +91,7 @@ def get_token(code): # pragma: no cover thetoken = token_json['access_token'] expires_in = token_json['expires_in'] user_id = token_json['x_user_id'] - except KeyError: + except (KeyError,JSONDecodeError): thetoken = 0 expires_in = 0 user_id = 0 diff --git a/rowers/templates/paidplans.html b/rowers/templates/paidplans.html index e0a5ecae..3fe2c01e 100644 --- a/rowers/templates/paidplans.html +++ b/rowers/templates/paidplans.html @@ -63,6 +63,14 @@