summaryrefslogtreecommitdiff
path: root/lib/hocr/hocr.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hocr/hocr.go')
-rw-r--r--lib/hocr/hocr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hocr/hocr.go b/lib/hocr/hocr.go
index dcd0494..052aa19 100644
--- a/lib/hocr/hocr.go
+++ b/lib/hocr/hocr.go
@@ -123,7 +123,7 @@ func GetAvgConf(hocrfn string) (float64, error) {
}
}
if num == 0 {
- return 0, errors.New("No words found")
+ return 0, nil
}
return total / num, nil
}