summaryrefslogtreecommitdiff
path: root/sphinx/util/websupport.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/websupport.py')
-rw-r--r--sphinx/util/websupport.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sphinx/util/websupport.py b/sphinx/util/websupport.py
index 20a35cf69..4d91cb77c 100644
--- a/sphinx/util/websupport.py
+++ b/sphinx/util/websupport.py
@@ -7,4 +7,8 @@
:license: BSD, see LICENSE for details.
"""
-from sphinxcontrib.websupport.utils import is_commentable # NOQA
+try:
+ from sphinxcontrib.websupport.utils import is_commentable # NOQA
+except ImportError:
+ def is_commentable(node):
+ raise RuntimeError