Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1589 from RasaHQ/fix-cmd-buttons
Browse files Browse the repository at this point in the history
fix printing multiple `Buttons:` in cmd
  • Loading branch information
Ghostvv committed Jan 17, 2019
2 parents 54a8a44 + ac951c4 commit af3e8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rasa_core/channels/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def print_bot_output(message, color=utils.bcolors.OKBLUE):
utils.print_color("Attachment: " + message.get("attachment"), color)

if "buttons" in message:
utils.print_color("Buttons:", color)
for idx, button in enumerate(message.get("buttons")):
button_str = "Buttons:\n" + button_to_string(button, idx)
utils.print_color(button_str, color)
utils.print_color(button_to_string(button, idx), color)

if "elements" in message:
for idx, element in enumerate(message.get("elements")):
Expand Down

0 comments on commit af3e8f6

Please sign in to comment.