Commit 60737068 authored by Martin Matějek's avatar Martin Matějek

Use yaml.safe_load() when reading plugins

parent 82580f0c
...@@ -34,7 +34,7 @@ class Plugin: ...@@ -34,7 +34,7 @@ class Plugin:
def from_file(cls, filepath): def from_file(cls, filepath):
try: try:
with open(filepath, 'r') as f: with open(filepath, 'r') as f:
data = yaml.load(f) data = yaml.safe_load(f)
except FileNotFoundError: except FileNotFoundError:
logger.warning("Failed to open plugin file '%s'", filepath) logger.warning("Failed to open plugin file '%s'", filepath)
return None return None
......
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