Add line for debugging

This commit is contained in:
Markus Unterwaditzer 2014-03-10 19:38:38 +01:00
parent 0fd07ec9de
commit 318fc53ef6

View file

@ -141,7 +141,10 @@ class DavStorage(Storage):
if isinstance(etag, bytes):
etag = etag.decode(response.encoding)
rv.append((href, Item(obj), etag))
hrefs_left.remove(href)
try:
hrefs_left.remove(href)
except KeyError as e:
raise KeyError('{} doesn\'t exist in {}'.format(href, hrefs_left))
for href in hrefs_left:
raise exceptions.NotFoundError(href)
return rv