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:
parent
d6e9b80496
commit
7a20e93716
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue