Browse Source

Fix: stupid off-by-n line...

pull/29/head
Alexandre Dulaunoy 6 years ago
parent
commit
f592fd785a
  1. 2
      bin/misp-modules.py

2
bin/misp-modules.py

@ -75,12 +75,12 @@ def load_modules(mod_dir):
continue
modulename = filename.split(".")[0]
moduletype = os.path.split(modulesdir)[1]
modules.append(modulename)
try:
mhandlers[modulename] = importlib.import_module(os.path.basename(root) + '.' + modulename)
except Exception as e:
log.warning('MISP modules {0} failed due to {1}'.format(modulename, e))
continue
modules.append(modulename)
log.info('MISP modules {0} imported'.format(modulename))
mhandlers['type:' + modulename] = moduletype
return mhandlers, modules

Loading…
Cancel
Save