Adding the protocol exception handling for requests. - zs - Zeitungsschau rss to email converter
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit f9891c3921193415865fa7d3aae02407dea12ab0
(DIR) parent e8137c93ecc14a551eb6c2c0673e866d3d70d5f6
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 2 Nov 2015 20:05:03 +0100
Adding the protocol exception handling for requests.
Diffstat:
zs | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/zs b/zs
@@ -67,6 +67,8 @@ def run(db, selfeed=None, dryrun=False, onlychanges=False):
retries += 1
except requests.exceptions.ReadTimeout:
continue
+ except requests.exceptions.ChunkedEncodingError:
+ continue
if rcode == 404:
estr = "404"