aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-09-21 20:41:11 +0300
committerGravatar ks129 <[email protected]>2020-09-21 20:41:11 +0300
commitc0495a2eb11e16bbe2c603e435fc6fbc40866e09 (patch)
treee4440e50f1d24aa2c900bcae2827660929ad25ed
parentFix error that came in when moved path to constant (diff)
Use `yaml.safe_load` instead plain load to avoid warning
-rw-r--r--pydis_site/apps/guides/utils.py2
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]: