consync: Minor change to ignore 404 is there is some other error from another node

This commit is contained in:
gholt 2011-06-16 01:37:43 +00:00
parent f9fb4c739c
commit 54d6b2d4c9

View File

@ -371,7 +371,12 @@ class ContainerSync(Daemon):
headers = these_headers
body = this_body
except ClientException, err:
exc = err
# If any errors are not 404, make sure we report the
# non-404 one. We don't want to mistankely assume the
# object no longer exists just because one says so and
# the others errored for some other reason.
if not exc or exc.http_status == 404:
exc = err
if timestamp < looking_for_timestamp:
if exc:
raise exc