From 89757609c26e41b460eb08abe6bd20051c90aabe Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 30 Oct 2023 15:47:59 -0700 Subject: [PATCH] Fix: Always return a list for audit log check (#4463) --- src/paperless/checks.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/paperless/checks.py b/src/paperless/checks.py index 6b0501821..a9ed6a6ca 100644 --- a/src/paperless/checks.py +++ b/src/paperless/checks.py @@ -203,13 +203,16 @@ def settings_values_check(app_configs, **kwargs): def audit_log_check(app_configs, **kwargs): db_conn = connections["default"] all_tables = db_conn.introspection.table_names() + result = [] if ("auditlog_logentry" in all_tables) and not (settings.AUDIT_LOG_ENABLED): - return [ + result.append( Critical( ( "auditlog table was found but PAPERLESS_AUDIT_LOG_ENABLED" " is not active. This setting cannot be disabled after enabling" ), ), - ] + ) + + return result