From 427280a843dfb9ff2b911e405265cb008eca8cfe Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Tue, 1 Aug 2023 15:59:01 +0100 Subject: [PATCH] Fix indentation --- sphinx/builders/linkcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py index d657e6d10ba..b8b93828fc9 100644 --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -407,8 +407,8 @@ def _check_uri(self, uri: str, hyperlink: Hyperlink) -> tuple[str, str, int]: _tls_info=(self.tls_verify, self.tls_cacerts), ) as response: if (self.check_anchors and response.ok and anchor - and not contains_anchor(response, anchor)): - raise Exception(__(f'Anchor {anchor!r} not found')) + and not contains_anchor(response, anchor)): + raise Exception(__(f'Anchor {anchor!r} not found')) # Copy data we need from the (closed) response status_code = response.status_code