This commit is contained in:
jonaswinkler committed 2020-12-30 21:54:36 +01:00
1 parent a0f983f05d
commit 208f4291d6
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -35,9 +35,9 @@ def train_classifier():
try:
# load the classifier, since we might not have to train it again.
classifier.reload()
except (FileNotFoundError, IncompatibleClassifierVersionError):
except (OSError, EOFError, IncompatibleClassifierVersionError):
# This is what we're going to fix here.
pass
classifier = DocumentClassifier()
try:
if classifier.train():