Merge "Fix Error during file validation"

This commit is contained in:
Zuul 2018-06-07 21:15:46 +00:00 committed by Gerrit Code Review
commit 9ac832fbde
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ def _verify_single_file(filename, schemas):
'%s does not begin with YAML beginning of document '
'marker "---".' % filename))
f.seek(0)
documents = []
try:
documents = list(yaml.safe_load_all(f))
except Exception as e: