From 4b27c0d27da2c8860a31a5fd4ed14bcebf84cd90 Mon Sep 17 00:00:00 2001 From: chbaeh <chbaeh@gmail.com> Date: Tue, 9 Apr 2019 11:25:27 +0200 Subject: [PATCH] fix assert --- ckanext/odsh/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py index 3a6107de..7519426b 100644 --- a/ckanext/odsh/plugin.py +++ b/ckanext/odsh/plugin.py @@ -335,8 +335,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm def before_index(self, dict_pkg): debug = config.get('ckanext.odsh.debug',False) slave = config.get('ckanext.odsh.slave',False) - if debug and slave: - raise 'indexing on slave not allowed' + assert not (debug and slave) + # make special date fields solr conform fields = ["issued", "temporal_start", "temporal_end"] for field in fields: -- GitLab