Skip to content

Commit 7d10bcf

Browse files
authored
Build path using Path() arguments also in f-string
1 parent 4253261 commit 7d10bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/darker/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def load_config(path: Optional[str], srcs: Iterable[str]) -> DarkerConfig:
137137
else:
138138
if Path(path).is_dir() or path.endswith(os.sep):
139139
raise ConfigurationError(
140-
f"Configuration file {Path(path) / 'pyproject.toml'} not found"
140+
f"Configuration file {Path(path, 'pyproject.toml')} not found"
141141
)
142142
raise ConfigurationError(f"Configuration file {path} not found")
143143
else:

0 commit comments

Comments
 (0)