Code reference › domain › person

class

SendCooldownError

pretalx.person.domain.verification.SendCooldownError source

InheritsVerificationErrorExceptionBaseException

Properties 1

Defined here

messagesource
@property
def message(self):
    return gettext(
        "Please wait %(seconds)s more seconds before requesting another email."
    ) % {"seconds": self.seconds}

Methods 1

Defined here

__init__(seconds)sourceInitialize self.

See help(type(self)) for accurate signature.

def __init__(self, seconds):
    self.seconds = seconds
    super().__init__(f"Verification email blocked for {seconds} more seconds")