From 5bb182461370ad4fcb8b5c80882bb8a0580c30ae Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 27 Sep 2022 08:48:04 -0700 Subject: [PATCH] Allow PAPERLESS_OCR_CLEAN=none --- src/paperless/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/checks.py b/src/paperless/checks.py index e5ab442ab..845ff2d0b 100644 --- a/src/paperless/checks.py +++ b/src/paperless/checks.py @@ -130,7 +130,7 @@ def settings_values_check(app_configs, **kwargs): if settings.OCR_MODE not in {"force", "skip", "redo", "skip_noarchive"}: msgs.append(Error(f'OCR output mode "{settings.OCR_MODE}" is not valid')) - if settings.OCR_CLEAN not in {"clean", "clean-final"}: + if settings.OCR_CLEAN not in {"clean", "clean-final", "none"}: msgs.append(Error(f'OCR clean mode "{settings.OCR_CLEAN}" is not valid')) return msgs