summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-12-13 13:31:47 +0000
committerNick White <git@njw.name>2019-12-13 13:31:47 +0000
commit700a8ed25067e4dc1ea7c66671d6117df57550ce (patch)
tree1ab8c17c40eca1f3e5711d99f651256ef4fb3091
parent9d80e094ee18e7ee19a0cc35d7fac4bf35b0c744 (diff)
Hopefully fix empty training bug
-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 022c118..3ce1f15 100644
--- a/cmd/bookpipeline/main.go
+++ b/cmd/bookpipeline/main.go
@@ -459,7 +459,7 @@ func ocrPage(msg bookpipeline.Qmsg, conn Pipeliner, process func(chan string, ch
msgparts := strings.Split(msg.Body, " ")
bookname := filepath.Dir(msgparts[0])
- if len(msgparts) > 1 {
+ if len(msgparts) > 1 && msgparts[1] != "" {
process = ocr(msgparts[1])
}