From a0760ca17106a3acef754ea5376ee239c39c2e30 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 6 Dec 2014 16:30:40 +0100 Subject: [PATCH] Invalid hrefs technically don't exist --- vdirsyncer/storage/dav.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vdirsyncer/storage/dav.py b/vdirsyncer/storage/dav.py index 4882a55..4463edc 100644 --- a/vdirsyncer/storage/dav.py +++ b/vdirsyncer/storage/dav.py @@ -303,6 +303,8 @@ class DavStorage(Storage): def get_multi(self, hrefs): href_xml = [] for href in uniq(hrefs): + if href != self._normalize_href(href): + raise exceptions.NotFoundError(href) href_xml.append('{}'.format(href)) if not href_xml: return ()