diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index 5bc7afa7..46cff86f 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -363,8 +363,11 @@ def get_token(code): token_json = response.json() try: - status_code = token_json['status_code'] - except KeyError: + status_code = response.status_code + # status_code = token_json['status_code'] + except AttributeError: + # except KeyError: + return (0,response.text) try: status_code = token_json.status_code except AttributeError: