Revision 65fb614f

b/invitations/invitations.py
320 320
    return user.max_invitations - num_inv
321 321

  
322 322
class InvitationException(Exception):
323
    messages = []
324

  
325
class TooManyInvitations(InvitationException):
326

  
327 323
    def __init__(self, msg):
328
        self.messages.append(msg)
324
        self.messages = [msg]
329 325

  
326
class TooManyInvitations(InvitationException):
327
    pass
330 328

  
331 329
class AlreadyInvited(InvitationException):
332

  
333
    def __init__(self, msg):
334
        self.messages.append(msg)
330
    pass

Also available in: Unified diff