Comment 2 for bug 1497051

Revision history for this message
Steve Randall (srandall52-o) wrote :

Yes, it's more complicated than I thought.

XMLParser stops parsing at the first error, calls the target's close, then re-raises the exception.

HTMLParser completes parsing, calls the target's close, then re-raises the *last* exception, which hides the real problem.

I think it's now clear how I can work around this.