Commit 3d8cde61 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Catch correct Exception

parent d826b74a
......@@ -581,7 +581,7 @@ def get_sharing(request):
[replace_permissions_username(x) for x in ret.get('read', [])]
ret['write'] = \
[replace_permissions_username(x) for x in ret.get('write', [])]
except ItemNotFound, e:
except ItemNotExists, e:
raise BadRequest(
'Bad X-Object-Sharing header value: unknown account: %s' % e)
......
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