The exit code for 'python -msphinx' is incorrect

The exit code was always 0, even if there were warnings and the -W
flag was set.
This commit is contained in:
Krassimir Valev
2017-10-17 14:15:00 +02:00
parent bd7d5abf8a
commit 028198bae0

View File

@@ -66,7 +66,7 @@ def main(*args, **kwargs):
RemovedInSphinx20Warning,
stacklevel=2,
)
build.main(*args, **kwargs)
return build.main(*args, **kwargs)
if __name__ == '__main__':