(e: Exception, verbose: bool)
Handle exception from a scan command.
Handle exception from a scan command.
Handle exception from a scan command .
def handle_exception(e: Exception, verbose: bool) -> int:
    """
    Handle exception from a scan command.
    """
    if isinstance(e, click.exceptions.Abort):
        return 0
    elif isinstance(e, click.ClickException):
        raise e
    else:
        if verbose:
            traceback.print_exc()
        raise click.ClickException(str(e))
def handle_exception ( e : Exception , verbose : bool ) -> int : if isinstance ( e , click . exceptions . Abort ) : return 0 elif isinstance ( e , click . ClickException ) : raise e else : if verbose : traceback . print_exc ( ) raise click . ClickException ( str ( e ) )