mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #6487 from tk0miya/6486_UnboundLocalError
Fix #6486: UnboundLocalError is raised if broken extension installed
This commit is contained in:
commit
fd83dd8c12
1
CHANGES
1
CHANGES
@ -27,6 +27,7 @@ Bugs fixed
|
|||||||
* #1125: html theme: scrollbar is hard to see on classic theme and macOS
|
* #1125: html theme: scrollbar is hard to see on classic theme and macOS
|
||||||
* #5502: linkcheck: Consider HTTP 503 response as not an error
|
* #5502: linkcheck: Consider HTTP 503 response as not an error
|
||||||
* #6439: Make generated download links reproducible
|
* #6439: Make generated download links reproducible
|
||||||
|
* #6486: UnboundLocalError is raised if broken extension installed
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -188,7 +188,7 @@ class sphinx_domains:
|
|||||||
|
|
||||||
def __exit__(self, exc_type: Type[Exception], exc_value: Exception, traceback: Any) -> bool: # NOQA
|
def __exit__(self, exc_type: Type[Exception], exc_value: Exception, traceback: Any) -> bool: # NOQA
|
||||||
self.disable()
|
self.disable()
|
||||||
return True
|
return False
|
||||||
|
|
||||||
def enable(self) -> None:
|
def enable(self) -> None:
|
||||||
self.directive_func = directives.directive
|
self.directive_func = directives.directive
|
||||||
|
Loading…
Reference in New Issue
Block a user