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
No known key found for this signature in database
GPG Key ID: E8200F0F0380C0E0

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 "