Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
On 2011-04-26, engelbert gruber wrote:
> in docutils/parsers/rst/__init__.py is class DirectiveError(Exception)
> shouldnt reporter.error (and the like) be used instead ?
The reporting is done catching the DirectiveError, e.g. in
result = directive_instance.run()
except docutils.parsers.rst.DirectiveError, error:
msg_node = self.reporter.system_message(error.level, error.msg,
msg_node += nodes.literal_block(block_text, block_text)
result = [msg_node]
If a DirectiveError leads to a traceback, the offending code should be
placed in a try/except clause, too.