Handle ReadTimeout

This is also something that we should treat as an offline error.

Change-Id: Ieceda5c043749030979f9a293ae347774b9099cc
This commit is contained in:
James E. Blair 2016-11-01 14:55:45 -07:00
parent c1462deb3c
commit 887c066194
1 changed files with 1 additions and 0 deletions

View File

@ -1368,6 +1368,7 @@ class Sync(object):
self.queue.complete(task)
except (requests.ConnectionError, OfflineError,
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ReadTimeout
) as e:
self.log.warning("Offline due to: %s" % (e,))
if not self.offline: