Commit 1605f3b8 authored by Marcus's avatar Marcus 👻

tools: use yaml safe_load

parent e9863145
Pipeline #192084797 passed with stage
in 17 minutes and 25 seconds
......@@ -24,7 +24,7 @@ for f in glob.glob('_docs/*.md') + glob.glob('_pages/*.md') + glob.glob('_posts/
exitvalue += 1
continue
try:
data = yaml.load(m.group(1))
data = yaml.safe_load(m.group(1))
except yaml.scanner.ScannerError as e:
print('ERROR:', f, '\n', e)
exitvalue += 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment