aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/hacktoberstats.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/hacktoberstats.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/hacktoberstats.py')
-rw-r--r--bot/exts/halloween/hacktoberstats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py
index d63ce39d..db5e37f2 100644
--- a/bot/exts/halloween/hacktoberstats.py
+++ b/bot/exts/halloween/hacktoberstats.py
@@ -145,7 +145,7 @@ class HacktoberStats(commands.Cog):
}
"""
logging.info(f"Saving linked_accounts to '{self.link_json}'")
- with open(self.link_json, 'w') as file:
+ with open(self.link_json, 'w', encoding="utf8") as file:
json.dump(self.linked_accounts, file, default=str)
logging.info(f"linked_accounts saved to '{self.link_json}'")