diff options
author | 2020-05-19 20:52:24 -0400 | |
---|---|---|
committer | 2020-05-19 20:52:24 -0400 | |
commit | ec1604d391ebbc14e25c52930e6ccadf3548b171 (patch) | |
tree | e19ea1c1e60f3e3304e4a33f86296d68b3ca7d7d /bot/exts/halloween/hacktoberstats.py | |
parent | 5/19 - bot | xmas, easter, evergreen - updated open statesments with explicit... (diff) |
5/19 - ext - set upen files encoding to utf8 for bots
Diffstat (limited to 'bot/exts/halloween/hacktoberstats.py')
-rw-r--r-- | bot/exts/halloween/hacktoberstats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index e01ee50c..d63ce39d 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -123,7 +123,7 @@ class HacktoberStats(commands.Cog): """ if self.link_json.exists(): logging.info(f"Loading linked GitHub accounts from '{self.link_json}'") - with open(self.link_json, 'r') as file: + with open(self.link_json, 'r', encoding="utf8") as file: linked_accounts = json.load(file) logging.info(f"Loaded {len(linked_accounts)} linked GitHub accounts from '{self.link_json}'") |