mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
props might be an empty list, not None.
This commit is contained in:
parent
a55d1f2d03
commit
f0fe282865
1 changed files with 2 additions and 3 deletions
|
|
@ -433,10 +433,9 @@ class DavStorage(Storage):
|
||||||
return href, etag
|
return href, etag
|
||||||
|
|
||||||
def update(self, href, item, etag):
|
def update(self, href, item, etag):
|
||||||
href = self._normalize_href(href)
|
|
||||||
if etag is None:
|
if etag is None:
|
||||||
raise ValueError('etag must be given and must not be None.')
|
raise ValueError('etag must be given and must not be None.')
|
||||||
href, etag = self._put(href, item, etag)
|
href, etag = self._put(self._normalize_href(href), item, etag)
|
||||||
return etag
|
return etag
|
||||||
|
|
||||||
def upload(self, item):
|
def upload(self, item):
|
||||||
|
|
@ -479,7 +478,7 @@ class DavStorage(Storage):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
props = response.findall('{DAV:}propstat/{DAV:}prop')
|
props = response.findall('{DAV:}propstat/{DAV:}prop')
|
||||||
if props is None:
|
if not props:
|
||||||
dav_logger.warning('Skipping {!r}, properties are missing.'
|
dav_logger.warning('Skipping {!r}, properties are missing.'
|
||||||
.format(href))
|
.format(href))
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue