From 4f8c9f6cc1589f50a78de8cf5beac36d9fda4447 Mon Sep 17 00:00:00 2001 From: mutantsan Date: Mon, 25 Nov 2024 16:01:22 +0200 Subject: [PATCH] fix: fix get_tracked_models for ckan 2.10 --- ckanext/event_audit/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/event_audit/config.py b/ckanext/event_audit/config.py index 4ddb5b2..3d61ae6 100644 --- a/ckanext/event_audit/config.py +++ b/ckanext/event_audit/config.py @@ -67,7 +67,7 @@ def get_ignored_models() -> list[str]: def get_tracked_models() -> list[str]: """A list of database models to track when logging events.""" - return tk.config[CONF_TRACK_MODELS] + return tk.config.get(CONF_TRACK_MODELS, []) def is_database_log_enabled() -> bool: