From 415d8c57382bb4ecbbca46c55a9eaaa8bad0907c Mon Sep 17 00:00:00 2001 From: mutantsan Date: Mon, 25 Nov 2024 15:50:39 +0200 Subject: [PATCH] fix: fix get_list_of_available_repos 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 5e504b6..2f1c72a 100644 --- a/ckanext/event_audit/config.py +++ b/ckanext/event_audit/config.py @@ -38,7 +38,7 @@ def active_repo() -> str: def get_list_of_available_repos() -> list[str]: - return tk.config[CONF_RESTRICT_AVAILABLE_REPOS] + return tk.config.get(CONF_RESTRICT_AVAILABLE_REPOS, []) def get_cloudwatch_credentials() -> types.AWSCredentials: