Comment 3 for bug 251352

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 251352] Re: Invalid regular expression crashes log output

On Tue, 2009-01-27 at 22:05 +0000, Anne Mohsen wrote:
> I propose to catch the exception and print an error message, in the
> attached patch

This would work, but on the down side it will add a try:except to the
inner loop.

Perhaps compiling the expression first would work? It should generate
the error at compilation time, and then that could be could and emitted,
and would be outside the loop.

-Rob