Line 35:
if not isinstance(user_result, str) and user_result not in DIRS.keys():
print("You should return a string with an action.")
return False
If `user_result == ""` this block will not run. I think it's supposed to be `or` instead of `and`. But furthermore, the first condition is unnecessary, since `DIRS.keys()` contains only strings. You can just use the code like this:
if user_result not in DIRS.keys():
print("You should return a string with an action.")
return False
Created at: 2014/11/27 13:40; Updated at: 2014/11/27 13:50