summaryrefslogtreecommitdiff
path: root/sphinx/util/websupport.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-30 01:04:30 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-30 01:04:30 +0900
commitb9b982d5f0885995f56db967d407a6163f280050 (patch)
treeded28c328908465eed3bc5d5111efc8166157995 /sphinx/util/websupport.py
parent4de4fd060a866e31adc5135a421418ba4e825fc4 (diff)
downloadsphinx-git-b9b982d5f0885995f56db967d407a6163f280050.tar.gz
Fix dependency errors
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