in example/lambda/index.py [0:0]
def handle(self, handler_input, exception):
# type: (HandlerInput, Exception) -> Response
logger.error(exception, exc_info=True)
_ = handler_input.attributes_manager.request_attributes["_"]
speak_output = _(data.ERROR)
return (
handler_input.response_builder
.speak(speak_output)
.ask(speak_output)
.response
)