mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 13:06:46 +01:00
Code style changes
This commit is contained in:
parent
5b9f38d398
commit
7257cece30
5 changed files with 155 additions and 75 deletions
|
|
@ -54,8 +54,9 @@ class Command(Renderable, BaseCommand):
|
|||
documents = queryset.distinct()
|
||||
|
||||
logging.getLogger(__name__).info("Loading classifier")
|
||||
clf = DocumentClassifier()
|
||||
try:
|
||||
clf = DocumentClassifier.load_classifier()
|
||||
clf.reload()
|
||||
except FileNotFoundError:
|
||||
logging.getLogger(__name__).fatal("Cannot classify documents, "
|
||||
"classifier model file was not "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue