Merge remote-tracking branch 'origin/py3' into test-3
This commit is contained in:
@@ -63,7 +63,7 @@ class CharacterImportThread(threading.Thread):
|
|||||||
for path in paths:
|
for path in paths:
|
||||||
try:
|
try:
|
||||||
# we try to parse api XML data first
|
# 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)
|
sheet = ParseXML(charFile)
|
||||||
char = sCharacter.new(sheet.name + " (imported)")
|
char = sCharacter.new(sheet.name + " (imported)")
|
||||||
sCharacter.apiUpdateCharSheet(char.ID, sheet.skills, 0)
|
sCharacter.apiUpdateCharSheet(char.ID, sheet.skills, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user