Skip to content

Commit b40191f

Browse files
authored
Merge branch 'main' into dependabot/github_actions/github-actions-d91b479d2f
2 parents 3bc2968 + ad3680e commit b40191f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytask/collect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def pytask_collect_node(session: Session, path: Path, node_info: NodeInfo) -> PN
444444
name = shorten_path(node, session.config["paths"] or (session.config["root"],))
445445

446446
if isinstance(node, Path) and node.is_dir():
447-
raise ValueError(_TEMPLATE_ERROR_DIRECTORY.format(path=path))
447+
raise ValueError(_TEMPLATE_ERROR_DIRECTORY.format(path=node))
448448

449449
return PathNode(name=name, path=node)
450450

0 commit comments

Comments
 (0)