Commit 79fde9b2 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Yaml SafeLoader

parent 6f0eba5e
......@@ -86,7 +86,7 @@ def scan_volumes(volumes):
def cli(configfile):
cfg = yaml.load(configfile, Loader=yaml.CLoader)
cfg = yaml.load(configfile, Loader=yaml.SafeLoader)
except Error as e:
print(f"Error reading file {configfile}")
......@@ -8,7 +8,7 @@ from pprint import pprint
with open('config.yml.example', 'r') as ymlfile:
cfg = yaml.load(ymlfile, Loader=yaml.CLoader)
cfg = yaml.load(ymlfile, Loader=yaml.SafeLoader)
Supports Markdown
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