diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-06-15 18:31:42 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-06-15 18:31:42 +0900 |
commit | b95d239f6858b57659439ab0c09016c3a1af2ee3 (patch) | |
tree | a5d50911795fc01636e5fa04ab6ab3b10609e870 /sphinx/util/docutils.py | |
parent | 5cf84a5505a6063b48e7fcc4d489259ade526912 (diff) | |
download | sphinx-git-b95d239f6858b57659439ab0c09016c3a1af2ee3.tar.gz |
Fix #6486: UnboundLocalError is raised if broken extension installed
Diffstat (limited to 'sphinx/util/docutils.py')
-rw-r--r-- | sphinx/util/docutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py index b9795e7e4..e2513b141 100644 --- a/sphinx/util/docutils.py +++ b/sphinx/util/docutils.py @@ -188,7 +188,7 @@ class sphinx_domains: def __exit__(self, exc_type: Type[Exception], exc_value: Exception, traceback: Any) -> bool: # NOQA self.disable() - return True + return False def enable(self) -> None: self.directive_func = directives.directive |