aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/monstersurvey.py
diff options
context:
space:
mode:
authorGravatar jodth07 <[email protected]>2020-05-19 20:52:24 -0400
committerGravatar jodth07 <[email protected]>2020-05-19 20:52:24 -0400
commitec1604d391ebbc14e25c52930e6ccadf3548b171 (patch)
treee19ea1c1e60f3e3304e4a33f86296d68b3ca7d7d /bot/exts/halloween/monstersurvey.py
parent5/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/monstersurvey.py')
-rw-r--r--bot/exts/halloween/monstersurvey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/halloween/monstersurvey.py b/bot/exts/halloween/monstersurvey.py
index 27da79b6..3b358212 100644
--- a/bot/exts/halloween/monstersurvey.py
+++ b/bot/exts/halloween/monstersurvey.py
@@ -27,7 +27,7 @@ class MonsterSurvey(Cog):
"""Initializes values for the bot to use within the voting commands."""
self.bot = bot
self.registry_location = os.path.join(os.getcwd(), 'bot', 'resources', 'halloween', 'monstersurvey.json')
- with open(self.registry_location, 'r') as jason:
+ with open(self.registry_location, 'r', encoding="utf8") as jason:
self.voter_registry = json.load(jason)
def json_write(self) -> None: