Commit fc570f40 authored by Denis Salem's avatar Denis Salem
Browse files

fix issue 14: remove yaml loader warning accordingly with pyyaml recommandation

parent 72240700
......@@ -26,7 +26,13 @@ from venc2.l10n import messages
def get_blog_configuration():
try:
blog_configuration = yaml.load(open(os.getcwd()+"/blog_configuration.yaml",'r').read())
blog_configuration = yaml.load(
open(
os.getcwd()+"/blog_configuration.yaml",
'r'
).read(),
Loader=yaml.FullLoader
)
mandatory_fields = [
"blog_name",
......
......@@ -72,7 +72,7 @@ class Entry:
self.content = ProcessedString(entry_parted[2], filename)
try:
metadata = yaml.load(entry_parted[0])
metadata = yaml.load(entry_parted[0], Loader=yaml.FullLoader)
except yaml.scanner.ScannerError as e:
die(messages.possible_malformed_entry.format(filename, ''), extra=str(e))
......
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