From d9dd94d6c3f05d091d610ff412b8d297c57d7246 Mon Sep 17 00:00:00 2001 From: Neugeniko Date: Fri, 2 Mar 2018 12:00:11 +1100 Subject: [PATCH] Update character.py Resolves issue #1453 with xmlparser.ParseFile(file) wanting bytes. --- service/character.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/character.py b/service/character.py index 2dc1b7e25..9bbf8a6cf 100644 --- a/service/character.py +++ b/service/character.py @@ -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)