mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Merge pull request #173 from alphagov/invalid_validation_code_fails
Fix error with invalid token causing an error.
This commit is contained in:
@@ -83,6 +83,9 @@ class UserApiClient(BaseAPIClient):
|
|||||||
return False, 'Code not found'
|
return False, 'Code not found'
|
||||||
elif 'Code has expired' in e.message:
|
elif 'Code has expired' in e.message:
|
||||||
return False, 'Code has expired'
|
return False, 'Code has expired'
|
||||||
|
else:
|
||||||
|
# TODO what is the default message?
|
||||||
|
return False, 'Code not found'
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user