Skip to content

Commit

Permalink
🐛 fix for custom extension instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed Mar 27, 2023
1 parent 5a41bde commit c94ecb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion alto/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,11 @@ def _load_extensions(self) -> None:
f"Extension {extension} does not have a register function."
) from e
try:
ext = ext_cls(self.filesystem, self.configuration)
ext = ext_cls(
filesystem=self.filesystem,
configuration=self.configuration,
run_task=self.__call__,
)
except Exception as e:
raise RuntimeError(f"Extension {extension} failed to instantiate.") from e
assert isinstance(ext, AltoExtension), f"{ext} is not an AltoExtension"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "singer-alto"
version = "0.2.19"
version = "0.2.20"
description = "A package for managing singer.io taps and targets"
authors = ["z3z1ma <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit c94ecb1

Please sign in to comment.