From ad35cb352b1994355bbbb5a73f99b597524001cc Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 23 Mar 2020 11:22:32 +0000 Subject: Don't try to make a graph with one line (it will fail), and don't mark analysis as failed if graph isn't made for that reason --- cmd/bookpipeline/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/bookpipeline') diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go index f7c2ae9..6687329 100644 --- a/cmd/bookpipeline/main.go +++ b/cmd/bookpipeline/main.go @@ -373,7 +373,7 @@ func analyse(conn Pipeliner) func(chan string, chan string, chan error, *log.Log } defer f.Close() err = bookpipeline.Graph(bestconfs, filepath.Base(savedir), f) - if err != nil { + if err != nil && err.Error() != "Not enough valid confidences" { close(up) errc <- errors.New(fmt.Sprintf("Error rendering graph: %s", err)) return -- cgit v1.2.1-24-ge1ad