1
0
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:
Virgil Dupras 2014-09-13 16:05:40 -04:00
parent 9e9e73aa6b
commit 990e73c383

View File

@ -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')
try:
cmd(['sphinx-build', basepath, destpath]) 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")