aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/candy_collection.py
diff options
context:
space:
mode:
authorGravatar jodth07 <[email protected]>2020-05-24 20:04:53 -0400
committerGravatar jodth07 <[email protected]>2020-05-24 20:04:53 -0400
commit86dad2173f0a8c6dc5d1d0646ba6441a1517052a (patch)
treec8bc862703addc711253a083b51ae86ef993d4f5 /bot/exts/halloween/candy_collection.py
parent5/19 - ext - set upen files encoding to utf8 for bots (diff)
5/24 - bot exts - updated writing with utf8 encoding
Diffstat (limited to 'bot/exts/halloween/candy_collection.py')
-rw-r--r--bot/exts/halloween/candy_collection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/halloween/candy_collection.py b/bot/exts/halloween/candy_collection.py
index 1f79d4e6..2c7d2f23 100644
--- a/bot/exts/halloween/candy_collection.py
+++ b/bot/exts/halloween/candy_collection.py
@@ -178,7 +178,7 @@ class CandyCollection(commands.Cog):
def save_to_json(self) -> None:
"""Save JSON to a local file."""
- with open(json_location, 'w') as outfile:
+ with open(json_location, 'w', encoding="utf8") as outfile:
json.dump(self.candy_json, outfile)
@in_month(Month.OCTOBER)