'Load our settings file.'

def load_settings_file(self, settings_file=None):

    if (not settings_file):
        settings_file = self.get_json_or_yaml_settings()
    if (not os.path.isfile(settings_file)):
        raise ClickException(u'Please    configure    your    zappa_settings    file    or    call    `zappa    init`.')
    if (u'.yml' in settings_file):
        with open(settings_file) as yaml_file:
            try:
                self.zappa_settings = yaml.load(yaml_file)
            except ValueError:
                raise ValueError(u'Unable    to    load    the    Zappa    settings    YAML.    It    may    be    malformed.')
    elif (u'.toml' in settings_file):
        with open(settings_file) as toml_file:
            try:
                self.zappa_settings = toml.load(toml_file)
            except ValueError:
                raise ValueError(u'Unable    to    load    the    Zappa    settings    TOML.    It    may    be    malformed.')
    else:
        with open(settings_file) as json_file:
            try:
                self.zappa_settings = json.load(json_file)
            except ValueError:
                raise ValueError(u'Unable    to    load    the    Zappa    settings    JSON.    It    may    be    malformed.')
