mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
fixes #222
This commit is contained in:
parent
a0f983f05d
commit
208f4291d6
3 changed files with 4 additions and 4 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue