Open Victoremepunto opened 3 years ago
What kind of error would you like to see here? What's the right behavior?
@skateman I would expect the parser to check if the file is a well formatter YAML file, I guess there must be a way to parse the YAML to check the syntax, so we validate it before we start reading it.
The parser tries to open it as a yaml, reading lines expecting having the right format, which is not safe, this raises exceptions when the format is not the expected:
This is reproducible just by passing a file with a random string as a content ( empty files also causes #2 )