mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
linkcheck: Use old-style string formatting to fix gettext (#12560)
This commit is contained in:
@@ -473,7 +473,7 @@ class HyperlinkAvailabilityCheckWorker(Thread):
|
||||
) as response:
|
||||
if (self.check_anchors and response.ok and anchor
|
||||
and not contains_anchor(response, anchor)):
|
||||
raise Exception(__(f'Anchor {quote(anchor)!r} not found'))
|
||||
raise Exception(__("Anchor '%s' not found") % quote(anchor))
|
||||
|
||||
# Copy data we need from the (closed) response
|
||||
status_code = response.status_code
|
||||
|
||||
Reference in New Issue
Block a user