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: