From c1462deb3cfadc62d69f49867413292b6b88131e Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 28 Oct 2016 12:20:59 +0200 Subject: [PATCH] Handle ChunkedEncodingError This looks like something that we should treat as an offline event. Summit is great for network testing. Change-Id: I99a1803fed9bcf2c92b7def18a42fae7af6476e7 --- gertty/sync.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gertty/sync.py b/gertty/sync.py index b7c1136..09c9095 100644 --- a/gertty/sync.py +++ b/gertty/sync.py @@ -1366,7 +1366,9 @@ class Sync(object): task.run(self) task.complete(True) self.queue.complete(task) - except (requests.ConnectionError, OfflineError) as e: + except (requests.ConnectionError, OfflineError, + requests.exceptions.ChunkedEncodingError, + ) as e: self.log.warning("Offline due to: %s" % (e,)) if not self.offline: self.submitTask(GetVersionTask(HIGH_PRIORITY))