Skip to content

Commit 1878fbe

Browse files
committed
Docs fix
1 parent e1862f4 commit 1878fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pypi_simple/parse_repo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def parse_repo_project_response(project: str, r: requests.Response) -> ProjectPa
146146
:rtype: ProjectPage
147147
:raises UnsupportedRepoVersionError: if the repository version has a
148148
greater major component than the supported repository version
149-
:raises ValueError: if the response has an unsupported
149+
:raises UnsupportedContentTypeError: if the response has an unsupported
150150
:mailheader:`Content-Type`
151151
"""
152152
ct = ContentType.parse(r.headers.get("content-type", "text/html"))
@@ -242,7 +242,7 @@ def parse_repo_index_response(r: requests.Response) -> IndexPage:
242242
:rtype: IndexPage
243243
:raises UnsupportedRepoVersionError: if the repository version has a
244244
greater major component than the supported repository version
245-
:raises ValueError: if the response has an unsupported
245+
:raises UnsupportedContentTypeError: if the response has an unsupported
246246
:mailheader:`Content-Type`
247247
"""
248248
ct = ContentType.parse(r.headers.get("content-type", "text/html"))

0 commit comments

Comments
 (0)