diff options
Diffstat (limited to 'sphinx/writers/websupport.py')
-rw-r--r-- | sphinx/writers/websupport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/writers/websupport.py b/sphinx/writers/websupport.py index 85f8406ec..bc48c9595 100644 --- a/sphinx/writers/websupport.py +++ b/sphinx/writers/websupport.py @@ -23,7 +23,7 @@ class WebSupportTranslator(HTMLTranslator): self.comment_class = 'sphinx-has-comment' def dispatch_visit(self, node): - if is_commentable(node): + if is_commentable(node) and hasattr(node, 'uid'): self.handle_visit_commentable(node) HTMLTranslator.dispatch_visit(self, node) |