Comment 1 for bug 914221

Revision history for this message
Edward K. Ream (edreamleo) wrote : Re: [Bug 914221] [NEW] bound method ViewRenderedController.update

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...

Edward