

def __str__(self):
    msg = 'There was an error loading your YAML configuration file '
    msg += ('located at\n%s:\n\n' % self.config_filename)
    msg += str(self.yaml_error)
    if ('{{' in str(self.yaml_error)):
        msg += '\n\n'
        msg += "Try quoting your jinja templates if they start with '{{'\n"
        msg += "because YAML interprets an unquoted '{' as the start of\n"
        msg += 'a new YAML object.'
    return msg

dataset/ETHPy150Open deanmalmgren/flo/flo/exceptions.py YamlError.__str__/original