mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05: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'
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user