Revision ccfd4e44 snf-pithos-app/pithos/api/functions.py
b/snf-pithos-app/pithos/api/functions.py | ||
---|---|---|
979 | 979 |
raise ItemNotFound('Container does not exist') |
980 | 980 |
except ValueError: |
981 | 981 |
raise BadRequest('Invalid sharing header') |
982 |
except QuotaError: |
|
983 |
raise RequestEntityTooLarge('Quota exceeded')
|
|
982 |
except QuotaError, e:
|
|
983 |
raise RequestEntityTooLarge('Quota error: %s' % e)
|
|
984 | 984 |
if not checksum and UPDATE_MD5: |
985 | 985 |
# Update the MD5 after the hashmap, as there may be missing hashes. |
986 | 986 |
checksum = hashmap_md5(request.backend, hashmap, size) |
... | ... | |
1027 | 1027 |
raise Forbidden('Not allowed') |
1028 | 1028 |
except ItemNotExists: |
1029 | 1029 |
raise ItemNotFound('Container does not exist') |
1030 |
except QuotaError: |
|
1031 |
raise RequestEntityTooLarge('Quota exceeded')
|
|
1030 |
except QuotaError, e:
|
|
1031 |
raise RequestEntityTooLarge('Quota error: %s' % e)
|
|
1032 | 1032 |
|
1033 | 1033 |
response = HttpResponse(status=201) |
1034 | 1034 |
response['ETag'] = checksum |
... | ... | |
1312 | 1312 |
raise ItemNotFound('Container does not exist') |
1313 | 1313 |
except ValueError: |
1314 | 1314 |
raise BadRequest('Invalid sharing header') |
1315 |
except QuotaError: |
|
1316 |
raise RequestEntityTooLarge('Quota exceeded')
|
|
1315 |
except QuotaError, e:
|
|
1316 |
raise RequestEntityTooLarge('Quota error: %s' % e)
|
|
1317 | 1317 |
if public is not None: |
1318 | 1318 |
try: |
1319 | 1319 |
request.backend.update_object_public(request.user_uniq, v_account, |
Also available in: Unified diff