for text, author in history: logging.info("text: %s", text) logging.info("author: %s", author)
if author == 'bot':
#print type(text)
#print type(tree['say'])
if 'say' in tree and text == tree['say'] and 'answers' in tree:
#if text == tree['say']:
# tree = tree['answers']
elif author == 'user':
key = get_key_if_valid(text, tree)
if key is not None:
tree = tree[key]
if 'say' in tree:
response_text = tree['say']
if 'answers' in tree:
possible_answers = tree['answers'].keys()
possible_answers.sort()
else:
possible_answers = None
aparece el siguiente error
IndentationError: expected an indented block
elif author == 'user':