Skip to content

Commit

Permalink
Fix mypy type-arg error I introduced
Browse files Browse the repository at this point in the history
  • Loading branch information
favilo committed Jun 28, 2024
1 parent 94e7e6f commit 00ea137
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esrally/utils/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def _load_component(self, component_name: str, module_dirs: Collection[str], roo
for name, p in self._modules(module_dirs, component_name, root_path):
self.logger.debug("Loading module [%s]: %s", name, p)
spec = importlib.util.spec_from_file_location(name, p)
if spec is None:
raise exceptions.SystemSetupError(f"Could not load module [{name}]")
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
if name == root_module_name:
Expand Down

0 comments on commit 00ea137

Please sign in to comment.