kedro/framework/cli/cli.py
def _handle_exception(msg, end=True):
    """Pretty print the current exception then exit."""
    if _VERBOSE:
        click.secho(traceback.format_exc(), nl=False, fg="yellow")
    else:
        etype, value, _ = sys.exc_info()
        click.secho(
            "".join(traceback.format_exception_only(etype, value))
            + "Run with --verbose to see the full exception",
            fg="yellow",
        )
    if end:
        raise KedroCliError(msg)
    click.secho("Error: " + msg, fg="red")
Pretty print the current exception then exit.
Pretty print the current exception then exit.
Pretty print the current exception then exit .
def _handle_exception(msg, end=True):
    if _VERBOSE:
        click.secho(traceback.format_exc(), nl=False, fg="yellow")
    else:
        etype, value, _ = sys.exc_info()
        click.secho(
            "".join(traceback.format_exception_only(etype, value))
            + "Run with --verbose to see the full exception",
            fg="yellow",
        )
    if end:
        raise KedroCliError(msg)
    click.secho("Error: " + msg, fg="red")
def _handle_exception ( msg , end = True ) : if _VERBOSE : click . secho ( traceback . format_exc ( ) , nl = False , fg = "yellow" ) else : etype , value , _ = sys . exc_info ( ) click . secho ( "" . join ( traceback . format_exception_only ( etype , value ) ) + "Run with --verbose to see the full exception" , fg = "yellow" , ) if end : raise KedroCliError ( msg ) click . secho ( "Error: " + msg , fg = "red" )
Pretty print the current exception then exit.
Pretty print the current exception then exit .
"""Pretty print the current exception then exit."""
msg
end