Skip to content

Commit d04fc10

Browse files
committed
Open redirects.json first.
1 parent cdf4296 commit d04fc10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/coltrane/config/redirects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_redirects() -> Generator[Redirect, None, None]:
2020
if not redirects_json_path.exists():
2121
return
2222

23-
with redirects_json_path as f:
23+
with open(redirects_json_path) as f:
2424
paths = msgspec.json.decode(f.read_bytes(), type=Annotated[dict[str, str | Redirect], msgspec.Meta()])
2525

2626
for from_url, to_url in paths.items():

0 commit comments

Comments
 (0)