mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
pycodestyle
This commit is contained in:
parent
87a18eae2d
commit
4c6a02aee7
@ -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…
x
Reference in New Issue
Block a user