Skip to content

Commit

Permalink
Change exception to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Sep 12, 2014
1 parent 9dbb359 commit 1c1aade
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vdirsyncer/storage/dav.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,12 @@ def get_multi(self, hrefs):
try:
hrefs_left.remove(href)
except KeyError:
raise KeyError('{} doesn\'t exist in {}'
.format(href, hrefs_left))
if href in hrefs:
dav_logger.warning('Server sent item twice: {}'
.format(href))
else:
dav_logger.warning('Server sent unsolicited item: {}'
.format(href))
for href in hrefs_left:
raise exceptions.NotFoundError(href)
return rv
Expand Down

0 comments on commit 1c1aade

Please sign in to comment.