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
This commit is contained in:
amercader 2015-03-19 12:47:31 +00:00
parent d6e9b80496
commit 7a20e93716
1 changed files with 2 additions and 5 deletions

View File

@ -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)