From 61379c1ad9a5131db04b27ec5c0207369fc7253d 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 7726de4baa5..d222ef8f809 100644 --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -408,8 +408,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