Skip to content

Commit 31317b0

Browse files
committed
fix version update script
1 parent 3e542ac commit 31317b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

noxfile.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,12 @@ def tag(session: Session) -> None:
337337

338338
changelog_file = ROOT / "docs" / "source" / "about" / "changelog.rst"
339339
for line in changelog_file.read_text().splitlines():
340-
if line == version:
340+
if line == f"v{version}":
341341
session.log(f"Found changelog section for version {version}")
342342
break
343343
else:
344344
session.error(
345-
f"No changelog entry for {version} in {changelog_file} - "
346-
f"make sure you have a title section called {version}."
345+
f"Something went wrong - could not find a title section for {version}"
347346
)
348347

349348
if session.interactive:

0 commit comments

Comments
 (0)