From 0780d8ca043d5c20a0a94af60c4e0cd0471c37f5 Mon Sep 17 00:00:00 2001 From: tk0miya Date: Sun, 24 Aug 2014 19:40:32 +0900 Subject: Fix tests has broken by changset:bb0211a65072 --- sphinx/writers/websupport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sphinx/writers/websupport.py') 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) -- cgit v1.2.1