Skip to content

Commit

Permalink
Fix command_table KeyError while remapping commands from vocabulary.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetmandm committed Jun 7, 2015
1 parent f1bdcfb commit d9f3be3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/_vocabulary.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
'vocabulary',
dict(zip(command_table, command_table))
)
# command_table seems to need to be arranged as {executed: spoken},
# but the above mapping has that reversed
command_table = dict([reversed(i) for i in command_table.items()])


class RefreshRule(dragonfly.CompoundRule):
Expand Down

0 comments on commit d9f3be3

Please sign in to comment.