Adding an exception handler for too many redirects. - zs - Zeitungsschau rss to email converter (DIR) Log (DIR) Files (DIR) Refs (DIR) LICENSE --- (DIR) commit 10c372978275b86bf97f64f53255afdf534f18f4 (DIR) parent 405089d5b8c2fe5999d25a835509f9aa3f5cddd1 (HTM) 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(-) --- (DIR) 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"