Skip to content

Commit

Permalink
commandType => cmdType
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-brajer committed Jun 3, 2020
1 parent 24f0782 commit 21b0e4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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__/
Expand Down
6 changes: 3 additions & 3 deletions card-assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 21b0e4e

Please sign in to comment.