rasa/core/utils.py
def create_task_error_logger(error_message: Text = ""
                             ) -> Callable[[Future], None]:
    """Error logger to be attached to a task.

    This will ensure exceptions are properly logged and won't get lost."""

    def handler(fut: Future) -> None:
        # noinspection PyBroadException
        try:
            fut.result()
        except Exception:
            logger.exception("An exception was raised while running task. "
                             "{}".format(error_message))

    return handler
Error logger to be attached to a task.

    This will ensure exceptions are properly logged and won't get lost.
Error logger to be attached to a task.
This will ensure exceptions are properly logged and won't get lost.
Error logger to be attached to a task . This will ensure exceptions are properly logged and won ' t get lost .
def create_task_error_logger(error_message: Text = ""
                             ) -> Callable[[Future], None]:
    def handler(fut: Future) -> None:
        try:
            fut.result()
        except Exception:
            logger.exception("An exception was raised while running task. "
                             "{}".format(error_message))
    return handler
def create_task_error_logger ( error_message : Text = "" ) -> Callable [ [ Future ] , None ] : def handler ( fut : Future ) -> None : try : fut . result ( ) except Exception : logger . exception ( "An exception was raised while running task. " "{}" . format ( error_message ) ) return handler
Error logger to be attached to a task.
Error logger to be attached to a task .
"""Error logger to be attached to a task.

    This will ensure exceptions are properly logged and won't get lost.""" # noinspection PyBroadException
error_message
Text