diff --git a/lambda/py/lambda_function.py b/lambda/py/lambda_function.py index d45b849..f4c74f0 100644 --- a/lambda/py/lambda_function.py +++ b/lambda/py/lambda_function.py @@ -165,9 +165,13 @@ def handle(self, handler_input, exception): # type: (HandlerInput, Exception) -> Response logger.info("In CatchAllExceptionHandler") logger.error(exception, exc_info=True) - - handler_input.response_builder.speak(EXCEPTION_MESSAGE).ask( - HELP_REPROMPT) + # get localization data + data = handler_input.attributes_manager.request_attributes["_"] + prompt = data[prompts.ERROR_MESSAGE] + reprompt = data[prompts.HELP_REPROMPT] + + handler_input.response_builder.speak(prompt).ask( + reprompt) return handler_input.response_builder.response