From 737e490276bcd496f5966b3428948d6cda475844 Mon Sep 17 00:00:00 2001 From: Nicholas Staples Date: Thu, 11 Feb 2016 16:23:41 +0000 Subject: [PATCH] Fix error with invalid token causing an error. --- app/notify_client/user_api_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/notify_client/user_api_client.py b/app/notify_client/user_api_client.py index 7e318c20a..83ada605e 100644 --- a/app/notify_client/user_api_client.py +++ b/app/notify_client/user_api_client.py @@ -83,6 +83,9 @@ class UserApiClient(BaseAPIClient): return False, 'Code not found' elif 'Code has expired' in e.message: return False, 'Code has expired' + else: + # TODO what is the default message? + return False, 'Code not found' raise e