def __init__(self, name, usability, errors):
    self.name = name
    self.errors = errors
    try:
        self.usability = {'unknown': Usability.UNKNOWN, 'user': Usability.USER, 'bot': Usability.BOT, 'both': Usability.BOTH}[usability.lower()]
    except KeyError:
        raise ValueError('Usability must be either user, bot, both or unknown, not {}'.format(usability)) from None
def __init__(self, name, usability, errors):
    self.name = name
    self.errors = errors
    try:
        self.usability = {'unknown': Usability.UNKNOWN, 'user': Usability.USER, 'bot': Usability.BOT, 'both': Usability.BOTH}[usability.lower()]
    except KeyError:
        raise ValueError('Usability must be either user, bot, both or unknown, not {}'.format(usability)) from None