if custom utter message contains no value or integer value then rasa fails returning custom utter message #5453
Labels
type:bug 🐛
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Rasa version: 1.7.1
Rasa SDK version (if used & relevant):
Rasa X version (if used & relevant):
Python version: 3.6.10
Operating system (windows, osx, ...): all
Issue:
when using custom utter message and custom utter response contains an empty value or a integer value rasa does not respond.
Custom utter response example:
the attribute img above has no value or when an attribure has integer value like
img: 2
the same issue occuresthe error is the fallowing:
Error (including full traceback):
Command or request that led to error:
Content of configuration file (config.yml) (if relevant):
Content of domain file (domain.yml) (if relevant):
How we have solved the issue
we have modified the file
rasa/rasa/core/nlg/interpolator.py
:we have changed:
text = re.sub(r"{([^\n{}]+?)}", r"{0[\1]}", template)
to
text = re.sub(r"{([^\n{}]+?)}", r"{0[\1]}", str(template))
The text was updated successfully, but these errors were encountered: