mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-05 10:45:51 +00:00
Loosen up etag warning
This commit is contained in:
parent
e303c907ae
commit
f0c1898265
1 changed files with 5 additions and 5 deletions
|
|
@ -118,12 +118,12 @@ class StorageSyncer(object):
|
|||
props = prefetch[href]
|
||||
|
||||
assert props['href'] == href
|
||||
old_etag = props.setdefault('etag', etag)
|
||||
if old_etag != etag:
|
||||
raise SyncError(
|
||||
'Etag changed during sync: Expected {!r}, got {!r}'
|
||||
.format(old_etag, etag)
|
||||
if props['etag'] != etag:
|
||||
sync_logger.warning(
|
||||
'Etag of {!r} changed during sync from {!r} to {!r}'
|
||||
.format(href, props['etag'], etag)
|
||||
)
|
||||
props['etag'] = etag
|
||||
props['item'] = item
|
||||
props['ident'] = ident = item.ident
|
||||
_store_props(ident, props)
|
||||
|
|
|
|||
Loading…
Reference in a new issue