mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 00:57:09 +01:00
pycodestyle
This commit is contained in:
parent
87a18eae2d
commit
4c6a02aee7
1 changed files with 2 additions and 2 deletions
|
|
@ -40,8 +40,8 @@ def load_classifier():
|
||||||
except (EOFError, IncompatibleClassifierVersionError) as e:
|
except (EOFError, IncompatibleClassifierVersionError) as e:
|
||||||
# there's something wrong with the model file.
|
# there's something wrong with the model file.
|
||||||
logger.error(
|
logger.error(
|
||||||
f"Unrecoverable error while loading document classification model: "
|
f"Unrecoverable error while loading document "
|
||||||
f"{str(e)}, deleting model file."
|
f"classification model: {str(e)}, deleting model file."
|
||||||
)
|
)
|
||||||
os.unlink(settings.MODEL_FILE)
|
os.unlink(settings.MODEL_FILE)
|
||||||
classifier = None
|
classifier = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue