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:
parent
94e029ec20
commit
c1462deb3c
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue