Skip to content

Commit 68e60a4

Browse files
Update conf.py
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 26ceb55 commit 68e60a4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

conf.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,7 @@
172172
with open("include/release-cycle.json", encoding="UTF-8") as _f:
173173
_cycle = json.load(_f)
174174

175-
_main_entries = [v for v, d in _cycle.items() if d.get("branch") == "main"]
176-
if len(_main_entries) != 1:
177-
raise RuntimeError(
178-
"release-cycle.json must contain exactly one entry with 'branch': 'main'"
179-
)
180-
181-
_main_version = _main_entries[0]
175+
main_version = next(version for version, data in _cycle.items() if data.get("branch") == "main")
182176

183177
# prolog and epilogs
184178
rst_prolog = f"""

0 commit comments

Comments
 (0)