MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / load_modules

Method load_modules

bbot/core/modules.py:479–489  ·  view source on GitHub ↗
(self, module_names)

Source from the content-addressed store, hash-verified

477 return preloaded_data
478
479 def load_modules(self, module_names):
480 modules = {}
481 for module_name in module_names:
482 try:
483 module = self.load_module(module_name)
484 except ModuleNotFoundError as e:
485 raise BBOTError(
486 f"Error loading module {module_name}: {e}. You may have leftover artifacts from an older version of BBOT. Try deleting/renaming your '~/.bbot' directory."
487 ) from e
488 modules[module_name] = module
489 return modules
490
491 def load_module(self, module_name):
492 """Loads a BBOT module by its name.

Callers

nothing calls this directly

Calls 2

load_moduleMethod · 0.95
BBOTErrorClass · 0.90

Tested by

no test coverage detected