mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-07 11:05:52 +00:00
Add warning about missing etag
This commit is contained in:
parent
3fa7988ce4
commit
ed6a65a6ab
1 changed files with 3 additions and 0 deletions
|
|
@ -446,6 +446,9 @@ class DavStorage(Storage):
|
|||
etag = response.headers.get('etag', None)
|
||||
href = self._normalize_href(_decode_href(response.url))
|
||||
if not etag:
|
||||
dav_logger.warning('Race condition detected with server {}, '
|
||||
'consider using an alternative.'
|
||||
.format(self.session.parsed_url.netloc))
|
||||
item2, etag = self.get(href)
|
||||
assert item2.uid == item.uid
|
||||
return href, etag
|
||||
|
|
|
|||
Loading…
Reference in a new issue