diff --git a/.gitignore b/.gitignore index 9aa4197..8a954e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,12 @@ # My files. .vscode/* !.vscode/settings.json +TODO.txt -Data_image_items.xcf Blueprint.xml -card2xml.xml -card2xml.py -TODO.txt +CardIDs.txt +Data_image_items.xcf +Data_image_encounters.xcf # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/card-assembler.py b/card-assembler.py index dc9b260..89017f6 100644 --- a/card-assembler.py +++ b/card-assembler.py @@ -118,11 +118,11 @@ def create_image(self, cardID): def _command_interpreter(self, command, commandName): """ Forward command to appropriate method. """ - if 'commandType' not in command: + if 'cmdType' not in command: raise KeyError( - 'Command "{}" is missing commandType tag.'.format( + 'Command "{}" is missing cmdType tag.'.format( commandName)) - commandType = command['commandType'] + commandType = command['cmdType'] if commandType not in self.commandLib: raise KeyError(