From ff8a72775967d660b67bbb0be4efcb148891424d Mon Sep 17 00:00:00 2001 From: Nicholas Staples Date: Wed, 27 Jan 2016 17:13:56 +0000 Subject: [PATCH] Fix for updated client. --- app/notify_client/user_api_client.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/app/notify_client/user_api_client.py b/app/notify_client/user_api_client.py index 14e19e273..65976b5a9 100644 --- a/app/notify_client/user_api_client.py +++ b/app/notify_client/user_api_client.py @@ -50,18 +50,11 @@ class UserApiClient(BaseAPIClient): data = user.serialize() url = "/user/{}/verify/password".format(user.id) data["password"] = password - resp = self.post(url, data=data) - if resp.status_code == 204: - return True + self.post(url, data=data) + return True except HTTPError as e: if e.status_code == 400 or e.status_code == 404: return False - # TODO temp work around until client fixed - except InvalidResponse as e: - if e.status_code == 204: - return True - else: - raise e def get_user_by_email(self, email_address): users = self.get_users()