Make src/documents/classifier.py::load_classifier keyword only

This commit is contained in:
Sebastian Steinbeißer
2025-01-06 20:22:57 +01:00
parent 2a9f01c39b
commit 9739304528

View File

@@ -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 "