We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b27a7c commit 9c4a9dfCopy full SHA for 9c4a9df
1 file changed
{{cookiecutter.project_name}}/scripts/util.py
@@ -13,14 +13,12 @@ class MissingDependencyError(Exception):
13
14
def __init__(self, project: Path, dependency: str):
15
"""Initializes MisssingDependencyError."""
16
- super().__init__(
17
- "\n".join(
18
- [
19
- f"Unable to find {dependency=}.",
20
- f"Please ensure that {dependency} is installed before setting up the repo at {project.absolute()}",
21
- ]
22
- )
23
+ message_lines: list[str] = [
+ f"Unable to find {dependency=}.",
+ f"Please ensure that {dependency} is installed before setting up the repo at {project.absolute()}",
+ ]
+ message: str = "\n".join(message_lines)
+ super().__init__(message)
24
25
26
def check_dependencies(path: Path, dependencies: list[str]) -> None:
0 commit comments