mirror of
https://github.com/release-engineering/repo-autoindex.git
synced 2025-02-23 13:42:52 +00:00
Merge remote-tracking branch 'origin/main' into deps/poetry-update
This commit is contained in:
commit
a000221d61
2 changed files with 2 additions and 1 deletions
1
.github/CODEOWNERS
vendored
Normal file
1
.github/CODEOWNERS
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
@rohanpm @crungehottman
|
|
@ -23,7 +23,7 @@ def assert_repodata_ok(condition: Any, msg: str):
|
|||
|
||||
|
||||
def get_tag(elem: Element, name: str) -> Element:
|
||||
elems: list[Element] = elem.getElementsByTagName(name) # type: ignore
|
||||
elems: list[Element] = elem.getElementsByTagName(name)
|
||||
assert_repodata_ok(len(elems) == 1, f"expected exactly one {name} tag")
|
||||
return elems[0]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue