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
parent
46bffbe700
commit
1eb7a022ff
|
@ -200,7 +200,7 @@ def main():
|
||||||
# Initialize PLAYERSKINS db
|
# Initialize PLAYERSKINS db
|
||||||
log.debug("loading playerskins db from '{}'" \
|
log.debug("loading playerskins db from '{}'" \
|
||||||
.format(args.playerskinsdb))
|
.format(args.playerskinsdb))
|
||||||
with args.playerskinsdb.open("r") as f:
|
with args.playerskinsdb.open("r", encoding="utf8") as f:
|
||||||
smashgg.PLAYERSKINS = json.load(f)
|
smashgg.PLAYERSKINS = json.load(f)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue