From: Eli B. <el...@gm...> - 2010-12-28 09:14:47
|
I'm using docutils programmatically for converting ReST to HTML (specifically docutils.core.publish_from_doctree). Since the usage is programmatic (controlled by my application) I must have full control of exceptions for logging. However, I noticed that the FileInput class used by docutils for various purposes exits the application (sys.exit) when it can't find a file. Reraising the IOError seems possible by passing in handle_io_errors=False, but no user-accessible publishing API seems to expose that. Am I missing something, or is this a valid feature request? Thanks in advance, and happy holidays |