Skip to content

Commit 1df38a8

Browse files
committed
Fix KeyError: 'backrefs' with Docutils 0.22
That attribute is no longer present since this Docutils commit: https://sourceforge.net/p/docutils/code/9684/ Fixes #206.
1 parent 85913d9 commit 1df38a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_tabs/tabs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def visit(translator, node):
6666
attrs.pop("ids")
6767
attrs.pop("names")
6868
attrs.pop("dupnames")
69-
attrs.pop("backrefs")
69+
attrs.pop("backrefs", None)
7070
text = translator.starttag(node, node.tagname, **attrs)
7171
translator.body.append(text.strip())
7272

0 commit comments

Comments
 (0)