Fix the loading of playerskins DB on Windows

Windows does not load the file with utf8 encoding by default, so I had
to specify it.
master
Niels Giorno 2020-08-28 12:50:26 +02:00
parent 46bffbe700
commit 1eb7a022ff
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ def main():
# Initialize PLAYERSKINS db
log.debug("loading playerskins db from '{}'" \
.format(args.playerskinsdb))
with args.playerskinsdb.open("r") as f:
with args.playerskinsdb.open("r", encoding="utf8") as f:
smashgg.PLAYERSKINS = json.load(f)
#