mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-29 11:09:27 -05:00
Make src/documents/classifier.py::load_classifier keyword only
This commit is contained in:
parent
2a9f01c39b
commit
9739304528
@ -37,7 +37,7 @@ class ClassifierModelCorruptError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
def load_classifier(raise_exception: bool = False) -> Optional["DocumentClassifier"]:
|
||||
def load_classifier(*, raise_exception: bool = False) -> Optional["DocumentClassifier"]:
|
||||
if not settings.MODEL_FILE.is_file():
|
||||
logger.debug(
|
||||
"Document classification model does not exist (yet), not "
|
||||
|
Loading…
x
Reference in New Issue
Block a user