summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-03-23 11:22:32 +0000
committerNick White <git@njw.name>2020-03-23 11:22:32 +0000
commitad35cb352b1994355bbbb5a73f99b597524001cc (patch)
tree1c4c4ed756d41b62938d13b48c8300509dcddbd7 /cmd
parent3372c864237d2bf18ccd18003db2f23645be3d18 (diff)
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
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bookpipeline/main.go2
1 files changed, 1 insertions, 1 deletions
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