Permalink
Browse files

Testing that the command is in the command dictionary.

  • Loading branch information...
1 parent a7f3916 commit a8f4d8b20e9b846048ad9af70ba0ba3300c7ba61 @jamesaduncan jamesaduncan committed Mar 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test.py
View
@@ -43,7 +43,7 @@ def shuffle():
while True:
command = therapist.get_next_command()
- if command and command_dict[command.command]:
+ if command and command.command in command_dict:
print command.command
c = 0

0 comments on commit a8f4d8b

Please sign in to comment.