On Tue, Jan 10, 2012 at 5:34 AM, Lewis Neal <email address hidden> wrote:
> Public bug reported:
> s = publish_string(s,writer_name='html')
> File "C:\Python32\lib\site-packages\docutils\core.py", line 400, in publish_string
> enable_exit_status=enable_exit_status)
> File "C:\Python32\lib\site-packages\docutils\core.py", line 648, in publish_programmatically
> output = pub.publish(enable_exit_status=enable_exit_status)
> File "C:\Python32\lib\site-packages\docutils\core.py", line 232, in publish
> sys.exit(exit_status)
> SystemExit: 1
Thanks for this report. Let's hope there is a way to dissuade
docutils from calling sys.exit on minor errors ;-) Looks like the
enable_exit_status flag might do the trick.
In the meantime, one workaround for you would be to hack the docutils
sources. I've resorted to that in the past...
On Tue, Jan 10, 2012 at 5:34 AM, Lewis Neal <email address hidden> wrote:
> Public bug reported:
> s = publish_ string( s,writer_ name='html' ) lib\site- packages\ docutils\ core.py" , line 400, in publish_string exit_status= enable_ exit_status) lib\site- packages\ docutils\ core.py" , line 648, in publish_ programmaticall y enable_ exit_status= enable_ exit_status) lib\site- packages\ docutils\ core.py" , line 232, in publish exit_status)
> File "C:\Python32\
> enable_
> File "C:\Python32\
> output = pub.publish(
> File "C:\Python32\
> sys.exit(
> SystemExit: 1
Thanks for this report. Let's hope there is a way to dissuade
docutils from calling sys.exit on minor errors ;-) Looks like the
enable_exit_status flag might do the trick.
In the meantime, one workaround for you would be to hack the docutils
sources. I've resorted to that in the past...
Edward