service keys: do all the right stuff

This commit is contained in:
Jimmy Zelinskie 2016-03-23 18:16:03 -04:00 committed by Jimmy Zelinskie
parent 6ecff950ab
commit 4079dba167
7 changed files with 149 additions and 41 deletions

View file

@ -80,6 +80,10 @@ class ServiceKeyDoesNotExist(DataModelException):
pass
class ServiceKeyAlreadyApproved(DataModelException):
pass
class TooManyLoginAttemptsException(Exception):
def __init__(self, message, retry_after):
super(TooManyLoginAttemptsException, self).__init__(message)