zs

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

commit 10c372978275b86bf97f64f53255afdf534f18f4
parent 405089d5b8c2fe5999d25a835509f9aa3f5cddd1
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 19 Mar 2016 17:02:35 +0100

Adding an exception handler for too many redirects.

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

diff --git a/zs b/zs @@ -73,6 +73,9 @@ def run(db, selfeed=None, dryrun=False, onlychanges=False): except lxml.etree.XMLSyntaxError: estr = "xml error" retries += 1 + except requests.exceptions.TooManyRedirects: + estr = "redirects" + retries += 1 if rcode == 404: estr = "404"