Skip to content

Commit 95ab16f

Browse files
committed
FIX: error in format string in error message in redirect extension
`otherdata` is a dict
1 parent 0e3a261 commit 95ab16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/sphinxext/redirect_from.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def merge_domaindata(self, docnames, otherdata):
8383
elif self.redirects[src] != dst:
8484
raise ValueError(
8585
f"Inconsistent redirections from {src} to "
86-
F"{self.redirects[src]} and {otherdata.redirects[src]}")
86+
f"{self.redirects[src]} and {otherdata['redirects'][src]}")
8787

8888

8989
class RedirectFrom(Directive):

0 commit comments

Comments
 (0)