Skip to content

Commit

Permalink
Fix yaml warning about missing Loader argument
Browse files Browse the repository at this point in the history
  • Loading branch information
aviallon committed Feb 8, 2021
1 parent 3f22eca commit d46cb75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knightos/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def execute(project_name=None, emulator=None, debugger=None, assembler=None, pla
template_dir = os.path.join(os.path.dirname(__file__), "..", "templates")
try:
with open(os.path.join(template_dir, template, template + ".yaml")) as f:
template_yaml = yaml.load(f.read())
template_yaml = yaml.load(f.read(), Loader=yaml.SafeLoader)
except OSError as e:
print("Template '" + template + "' not found. Stopping.")
exit(1)
Expand Down

0 comments on commit d46cb75

Please sign in to comment.