Fix error with invalid token causing an error.

This commit is contained in:
Nicholas Staples
2016-02-11 16:23:41 +00:00
parent 5fd8ca492d
commit 737e490276

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