Rework exception-handling code for current feedparser.
authorAdam Sampson <ats@offog.org>
Tue, 9 Oct 2018 19:24:16 +0000 (20:24 +0100)
committerAdam Sampson <ats@offog.org>
Tue, 9 Oct 2018 19:24:16 +0000 (20:24 +0100)
commit389b070a5cf0052a4a58a86aab90d4f1b6a7b3ec
treeafd66c28677dd534262c2767cbae305f9e06cdad
parentdf658c3284c02b31a0e3055f61b0e4483dd8b104
Rework exception-handling code for current feedparser.

Errors from urllib2 used to be reported in bozo_exception. They are now
raised directly from feedparser.parse, which probably makes more sense.
rawdog now handles both cases, putting network-ish exceptions into
rawdog_exception either way; it also sets rawdog_timeout when a timeout
occurs, which should make it easier for plugins to detect this.

As a result, there's no longer a distinction between the "Error while
fetching feed" and "Error fetching or parsing feed" messages, and a
traceback can be printed for both if showtracebacks is on.
NEWS
rawdoglib/rawdog.py