mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5931 from tk0miya/5928_KeyError
Fix #5928: KeyError: 'DOCUTILSCONFIG' when running build
This commit is contained in:
commit
f39fa12f8b
1
CHANGES
1
CHANGES
@ -24,6 +24,7 @@ Bugs fixed
|
||||
* #5755: C++, fix duplicate declaration error on function templates with constraints
|
||||
in the return type.
|
||||
* C++, parse unary right fold expressions and binary fold expressions.
|
||||
* #5928: KeyError: 'DOCUTILSCONFIG' when running build
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -131,7 +131,7 @@ def using_user_docutils_conf(confdir):
|
||||
yield
|
||||
finally:
|
||||
if docutilsconfig is None:
|
||||
os.environ.pop('DOCUTILSCONFIG')
|
||||
os.environ.pop('DOCUTILSCONFIG', None)
|
||||
else:
|
||||
os.environ['DOCUTILSCONFIG'] = docutilsconfig
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user