mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #6486: UnboundLocalError is raised if broken extension installed
This commit is contained in:
parent
5cf84a5505
commit
b95d239f68
1
CHANGES
1
CHANGES
@ -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
|
||||
--------
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user