|
@@ -522,13 +522,14 @@ def report(path, xml_request, collection):
|
|
|
if name:
|
|
if name:
|
|
|
# Reference is an item
|
|
# Reference is an item
|
|
|
path = "/".join(hreference.split("/")[:-1]) + "/"
|
|
path = "/".join(hreference.split("/")[:-1]) + "/"
|
|
|
- try:
|
|
|
|
|
- items = [collection.get(name)]
|
|
|
|
|
- except KeyError:
|
|
|
|
|
|
|
+ item = collection.get(name)
|
|
|
|
|
+ if item is None:
|
|
|
multistatus.append(
|
|
multistatus.append(
|
|
|
_item_response(hreference, found_item=False))
|
|
_item_response(hreference, found_item=False))
|
|
|
continue
|
|
continue
|
|
|
|
|
|
|
|
|
|
+ items = [item]
|
|
|
|
|
+
|
|
|
else:
|
|
else:
|
|
|
# Reference is a collection
|
|
# Reference is a collection
|
|
|
path = hreference
|
|
path = hreference
|