Update character.py

Resolves issue #1453 with xmlparser.ParseFile(file) wanting bytes.
This commit is contained in:
Neugeniko
2018-03-02 12:00:11 +11:00
committed by GitHub
parent 963353a1dc
commit d9dd94d6c3

View File

@@ -63,7 +63,7 @@ class CharacterImportThread(threading.Thread):
for path in paths:
try:
# we try to parse api XML data first
with open(path, mode='r') as charFile:
with open(path, mode='rb') as charFile:
sheet = ParseXML(charFile)
char = sCharacter.new(sheet.name + " (imported)")
sCharacter.apiUpdateCharSheet(char.ID, sheet.skills, 0)