From 3b56c647005cde390276045b8eee9f84d4206cdb Mon Sep 17 00:00:00 2001 From: vcidst Date: Thu, 18 Jan 2024 17:53:33 +0100 Subject: [PATCH] format --- rasa/core/processor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rasa/core/processor.py b/rasa/core/processor.py index 9c6afbbe1635..fc628c7a7247 100644 --- a/rasa/core/processor.py +++ b/rasa/core/processor.py @@ -747,7 +747,11 @@ def _update_full_retrieval_intent(self, parse_data: Dict[Text, Any]) -> None: response_selector = parse_data.get(RESPONSE_SELECTOR, {}) all_retrieval_intents = response_selector.get("all_retrieval_intents", []) if intent_name and intent_name in all_retrieval_intents: - retrieval_intent = response_selector.get(intent_name, {}).get(RESPONSE, {}).get(INTENT_RESPONSE_KEY) + retrieval_intent = ( + response_selector.get(intent_name, {}) + .get(RESPONSE, {}) + .get(INTENT_RESPONSE_KEY) + ) parse_data[INTENT][FULL_RETRIEVAL_INTENT_NAME_KEY] = retrieval_intent def _parse_message_with_graph(