From 7a20e9371635c9a24ecc499023e2cc7a749df634 Mon Sep 17 00:00:00 2001 From: amercader Date: Thu, 19 Mar 2015 12:47:31 +0000 Subject: [PATCH] Raise on startup import errors so we don't mask problems Otherwise if there was eg an actual ImportError we jut got 2015-03-19 12:30:08,430 DEBUG [ckanext.harvest.plugin] No auth module for action "update" on the log --- ckanext/harvest/plugin.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ckanext/harvest/plugin.py b/ckanext/harvest/plugin.py index 0ddc573..30bd814 100644 --- a/ckanext/harvest/plugin.py +++ b/ckanext/harvest/plugin.py @@ -289,11 +289,8 @@ def _get_logic_functions(module_root, logic_functions = {}): for module_name in ['get', 'create', 'update','delete']: module_path = '%s.%s' % (module_root, module_name,) - try: - module = __import__(module_path) - except ImportError: - log.debug('No auth module for action "{0}"'.format(module_name)) - continue + + module = __import__(module_path) for part in module_path.split('.')[1:]: module = getattr(module, part)