mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Code style changes
This commit is contained in:
@@ -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 "
|
||||
|
Reference in New Issue
Block a user