aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/wonder_twins.py
diff options
context:
space:
mode:
authorGravatar Rohan Reddy Alleti <[email protected]>2023-05-17 12:23:29 +0530
committerGravatar GitHub <[email protected]>2023-05-17 12:23:29 +0530
commit7876744fedab9fbb22a160c8950ee22262570270 (patch)
treef7189b5f3e9c0947d71f86461f151e50092f6e2c /bot/exts/fun/wonder_twins.py
parentnit (diff)
parentBump sentry-sdk from 1.22.2 to 1.23.0 (#1277) (diff)
Merge branch 'main' into undeprecate-bookmark
Diffstat (limited to 'bot/exts/fun/wonder_twins.py')
-rw-r--r--bot/exts/fun/wonder_twins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/wonder_twins.py b/bot/exts/fun/wonder_twins.py
index 0c5b0a76..9385780d 100644
--- a/bot/exts/fun/wonder_twins.py
+++ b/bot/exts/fun/wonder_twins.py
@@ -11,8 +11,8 @@ class WonderTwins(Cog):
"""Cog for a Wonder Twins inspired command."""
def __init__(self):
- with open(Path.cwd() / "bot" / "resources" / "fun" / "wonder_twins.yaml", "r", encoding="utf-8") as f:
- info = yaml.load(f, Loader=yaml.FullLoader)
+ with open(Path.cwd() / "bot" / "resources" / "fun" / "wonder_twins.yaml", encoding="utf-8") as f:
+ info = yaml.safe_load(f)
self.water_types = info["water_types"]
self.objects = info["objects"]
self.adjectives = info["adjectives"]