Skip to content

Commit b4136b6

Browse files
committed
Don't panic on invalid version status
1 parent 257c105 commit b4136b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build_docs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ def from_json(cls, data: dict) -> Versions:
111111
status = release["status"]
112112
status = Version.SYNONYMS.get(status, status)
113113
if status not in Version.STATUSES:
114-
msg = (
114+
logging.warning(
115115
f"Saw invalid version status {status!r}, "
116-
f"expected to be one of {permitted}."
116+
f"expected to be one of {permitted}. Context: {release}"
117117
)
118-
raise ValueError(msg)
118+
continue
119119
versions.append(Version(name=name, status=status, branch_or_tag=branch))
120120

121121
return cls(sorted(versions, key=Version.as_tuple))

0 commit comments

Comments
 (0)