Fix #6486: UnboundLocalError is raised if broken extension installed

This commit is contained in:
Takeshi KOMIYA 2019-06-15 18:31:42 +09:00
parent 5cf84a5505
commit b95d239f68
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ Bugs fixed
* #1125: html theme: scrollbar is hard to see on classic theme and macOS
* #5502: linkcheck: Consider HTTP 503 response as not an error
* #6439: Make generated download links reproducible
* #6486: UnboundLocalError is raised if broken extension installed
Testing
--------

View File

@ -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