summaryrefslogtreecommitdiff
path: root/bucket-lines
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-01-24 19:11:04 +0000
committerNick White <git@njw.name>2019-01-24 19:11:04 +0000
commit1c17766952bdcd6f7d31d0fa1a2e504b1aa4f14a (patch)
tree71bb15de82d98232d3625f872cc3ce70054cfc1b /bucket-lines
parent8dff3248515a81386c4bdedca9fa05b22033c68d (diff)
Fix bug: if non-prob/hocr file was encountered a dupe old line could be processed
Diffstat (limited to 'bucket-lines')
-rw-r--r--bucket-lines/bucket-lines.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bucket-lines/bucket-lines.go b/bucket-lines/bucket-lines.go
index e4e5a4d..ee81721 100644
--- a/bucket-lines/bucket-lines.go
+++ b/bucket-lines/bucket-lines.go
@@ -67,6 +67,7 @@ func main() {
newlines, err = hocr.GetLineDetails(f)
default:
log.Printf("Skipping file '%s' as it isn't a .prob or .hocr\n", f)
+ continue
}
if err != nil {
log.Fatal(err)