Commit 3712e32e authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix piths Object GET versionlist: catch ItemNotExists exception

parent 7e823cf0
......@@ -714,6 +714,8 @@ def object_read(request, v_account, v_container, v_object):
v_container, v_object)
except NotAllowedError:
raise Forbidden('Not allowed')
except ItemNotExists:
raise ItemNotFound('Object does not exist')
d = {'versions': v}
if request.serialization == 'xml':
d['object'] = v_object
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment