Skip to content

Commit

Permalink
fix: allow specifying tree root using keyword argument
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Jan 14, 2022
1 parent b95dc9f commit 11c0abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beet/toolchain/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __post_init__(self, whitelist: Optional[List[str]]):
self.template.expose(
"generate_tree",
lambda *args, **kwargs: generate_tree(
self.meta["render_path"],
kwargs.pop("root") if "root" in kwargs else self.meta["render_path"],
*args,
name=(
kwargs.pop("name")
Expand Down

0 comments on commit 11c0abf

Please sign in to comment.