mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-08 09:49:51 +00:00
Catch Spinx SystemExit when building help
In a recent Sphinx release, it started calling `sys.exit()` and that caused our whole build process to exit prematurely.
This commit is contained in:
parent
9e9e73aa6b
commit
990e73c383
@ -66,4 +66,7 @@ def gen(basepath, destpath, changelogpath, tixurl, confrepl=None, confpath=None,
|
|||||||
# missing dependencies which are in the virtualenv). Here, we do exactly what is done when
|
# missing dependencies which are in the virtualenv). Here, we do exactly what is done when
|
||||||
# calling the command from bash.
|
# calling the command from bash.
|
||||||
cmd = load_entry_point('Sphinx', 'console_scripts', 'sphinx-build')
|
cmd = load_entry_point('Sphinx', 'console_scripts', 'sphinx-build')
|
||||||
cmd(['sphinx-build', basepath, destpath])
|
try:
|
||||||
|
cmd(['sphinx-build', basepath, destpath])
|
||||||
|
except SystemExit:
|
||||||
|
print("Sphinx called sys.exit(), but we're cancelling it because we don't acutally want to exit")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user