messages/_config.py
def verify_profile_name(msg, cfg):
    """
    Verifies the profile name exists in the config.json file.

    Args:
        :msg: (Message class) an instance of a message class.
        :cfg: (jsonconfig.Config) config instance.
    """
    if msg.profile not in cfg.data:
        raise UnknownProfileError(msg.profile)
def verify_profile_name(msg, cfg):
    """
    Verifies the profile name exists in the config.json file.

    Args:
        :msg: (Message class) an instance of a message class.
        :cfg: (jsonconfig.Config) config instance.
    """
    if msg.profile not in cfg.data:
        raise UnknownProfileError(msg.profile)
Verifies the profile name exists in the config.json file.

    Args:
        :msg: (Message class) an instance of a message class.
        :cfg: (jsonconfig.Config) config instance.