Handle ChunkedEncodingError

This looks like something that we should treat as an offline event.

Summit is great for network testing.

Change-Id: I99a1803fed9bcf2c92b7def18a42fae7af6476e7
This commit is contained in:
James E. Blair 2016-10-28 12:20:59 +02:00
parent 94e029ec20
commit c1462deb3c
1 changed files with 3 additions and 1 deletions

View File

@ -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))