Merge pull request #173 from alphagov/invalid_validation_code_fails

Fix error with invalid token causing an error.
This commit is contained in:
Rebecca Law
2016-02-12 09:45:44 +00:00

View File

@@ -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