zs

Zeitungsschau rss to email converter
git clone git://r-36.net/zs
Log | Files | Refs | LICENSE

commit 8e4b3c45ab2319c87570b7cb60fa1fcf49ce0e93
parent 9891ca73640aa4fa074c54e92913f847ba1e756b
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sun, 15 Nov 2015 18:14:22 +0100

In case of an XML syntax error, retry.

Diffstat:
zs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/zs b/zs @@ -19,6 +19,7 @@ import pprint import requests.exceptions import requests import smtplib +import lxml dodebug = False @@ -69,6 +70,9 @@ def run(db, selfeed=None, dryrun=False, onlychanges=False): continue except requests.exceptions.ChunkedEncodingError: continue + except lxml.etree.XMLSyntaxError: + estr = "xml error" + retries += 1 if rcode == 404: estr = "404"