Revision e809b989 pithos/api/functions.py
b/pithos/api/functions.py | ||
---|---|---|
864 | 864 |
raise ItemNotFound('Container does not exist') |
865 | 865 |
except ValueError: |
866 | 866 |
raise BadRequest('Invalid sharing header') |
867 |
except AttributeError, e: |
|
868 |
raise Conflict(simple_list_response(request, e.data)) |
|
869 | 867 |
except QuotaError: |
870 | 868 |
raise RequestEntityTooLarge('Quota exceeded') |
871 | 869 |
if 'ETag' not in meta: |
... | ... | |
1050 | 1048 |
raise ItemNotFound('Object does not exist') |
1051 | 1049 |
except ValueError: |
1052 | 1050 |
raise BadRequest('Invalid sharing header') |
1053 |
except AttributeError, e: |
|
1054 |
raise Conflict(simple_list_response(request, e.data)) |
|
1055 | 1051 |
if public is not None: |
1056 | 1052 |
try: |
1057 | 1053 |
request.backend.update_object_public(request.user_uniq, v_account, |
... | ... | |
1196 | 1192 |
raise ItemNotFound('Container does not exist') |
1197 | 1193 |
except ValueError: |
1198 | 1194 |
raise BadRequest('Invalid sharing header') |
1199 |
except AttributeError, e: |
|
1200 |
raise Conflict(simple_list_response(request, e.data)) |
|
1201 | 1195 |
except QuotaError: |
1202 | 1196 |
raise RequestEntityTooLarge('Quota exceeded') |
1203 | 1197 |
if public is not None: |
Also available in: Unified diff