Skip to content

Commit

Permalink
add a default value of None to domain_responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Tawakalt committed Sep 15, 2023
1 parent c6bfa48 commit 50c95a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa/core/nlg/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def generate(
**kwargs: Any,
) -> Dict[Text, Any]:
"""Retrieve a named response from the domain using an endpoint."""
domain_responses = kwargs.pop("domain_responses")
domain_responses = kwargs.pop("domain_responses", None)
response_id = self.fetch_response_id(
utter_action, tracker, output_channel, domain_responses
)
Expand Down

0 comments on commit 50c95a9

Please sign in to comment.