messages/_config.py
def check_config_file(msg):
    """
    Checks the config.json file for default settings and auth values.

    Args:
        :msg: (Message class) an instance of a message class.
    """
    with jsonconfig.Config("messages", indent=4) as cfg:
        verify_profile_name(msg, cfg)

        retrieve_data_from_config(msg, cfg)

        if msg._auth is None:
            retrieve_pwd_from_config(msg, cfg)

        if msg.save:
            update_config_data(msg, cfg)
            update_config_pwd(msg, cfg)
def check_config_file(msg):
    """
    Checks the config.json file for default settings and auth values.

    Args:
        :msg: (Message class) an instance of a message class.
    """
    with jsonconfig.Config("messages", indent=4) as cfg:
        verify_profile_name(msg, cfg)

        retrieve_data_from_config(msg, cfg)

        if msg._auth is None:
            retrieve_pwd_from_config(msg, cfg)

        if msg.save:
            update_config_data(msg, cfg)
            update_config_pwd(msg, cfg)
Checks the config.json file for default settings and auth values.

    Args:
        :msg: (Message class) an instance of a message class.