diff options
author | 2020-09-21 20:41:11 +0300 | |
---|---|---|
committer | 2020-09-21 20:41:11 +0300 | |
commit | c0495a2eb11e16bbe2c603e435fc6fbc40866e09 (patch) | |
tree | e4440e50f1d24aa2c900bcae2827660929ad25ed /pydis_site/apps | |
parent | Fix error that came in when moved path to constant (diff) |
Use `yaml.safe_load` instead plain load to avoid warning
Diffstat (limited to 'pydis_site/apps')
-rw-r--r-- | pydis_site/apps/guides/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/guides/utils.py b/pydis_site/apps/guides/utils.py index 0220e586..c6f668f7 100644 --- a/pydis_site/apps/guides/utils.py +++ b/pydis_site/apps/guides/utils.py @@ -19,7 +19,7 @@ def get_category(category: str) -> Dict[str, str]: raise Http404("Category not found.") with open(os.path.join(path, "_info.yml")) as f: - return yaml.load(f.read()) + return yaml.safe_load(f.read()) def get_categories() -> Dict[str, Dict]: |