Revision 9eaa2ef6
b/snf-pithos-app/pithos/api/util.py | ||
---|---|---|
968 | 968 |
hashmap[bi] = request.backend.update_block(hashmap[bi], |
969 | 969 |
data[:bl], bo) |
970 | 970 |
except IllegalOperationError, e: |
971 |
raise faults.Forbidden(e) |
|
971 |
raise faults.Forbidden(e[0])
|
|
972 | 972 |
else: |
973 | 973 |
hashmap.append(request.backend.put_block(('\x00' * bo) + data[:bl])) |
974 | 974 |
return bl # Return ammount of data written. |
Also available in: Unified diff