Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/unit/legacy/api/xmlrpc/test_xmlrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def test_error_when_disabled(self, pyramid_request, metrics, monkeypatch):
xmlrpc.search(pyramid_request, {"name": "foo", "summary": ["one", "two"]})

assert exc.value.faultString == (
"RuntimeError: This API has been temporarily disabled due to unmanageable "
"load and will be deprecated in the near future. Please use the Simple or "
"JSON API instead."
"RuntimeError: PyPI's XMLRPC API has been temporarily disabled due to "
"unmanageable load and will be deprecated in the near future. See "
"https://status.python.org/ for more information."
)
assert metrics.increment.calls == [
pretend.call("warehouse.xmlrpc.search.deprecated")
Expand Down
7 changes: 4 additions & 3 deletions warehouse/legacy/api/xmlrpc/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,10 @@ def search(request, spec: Mapping[str, Union[str, List[str]]], operator: str = "
raise XMLRPCWrappedError(
RuntimeError(
(
"This API has been temporarily disabled due to unmanageable load "
"and will be deprecated in the near future. Please use the Simple "
"or JSON API instead."
"PyPI's XMLRPC API has been temporarily disabled due to "
"unmanageable load and will be deprecated in the near "
"future. See https://status.python.org/ for more "
"information."
)
)
)
Expand Down