Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions injection/_core/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,7 @@ def unlock(self) -> Self:
return self

def load_profile(self, *names: str) -> ContextManager[Self]:
modules = tuple(self.from_name(name) for name in names)

for module in modules:
module.unlock()

modules = (self.from_name(name) for name in names)
self.unlock().init_modules(*modules)

@contextmanager
Expand Down