Skip to content

Commit

Permalink
only replace variables in text
Browse files Browse the repository at this point in the history
  • Loading branch information
erohmensing committed Jun 11, 2019
1 parent 8d2358a commit 97d62ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rasa/core/nlg/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def _fill_template_text(
# Getting the slot values in the template variables
template_vars = self._template_variables(filled_slots, kwargs)

# Filling the template variables in the template
if template_vars:
# Filling the template variables in the template text
if template_vars and template.get("text"):
try:
# transforming template tags from
# "{tag_name}" to "{0[tag_name]}"
Expand Down

0 comments on commit 97d62ae

Please sign in to comment.