Revision 19f4195f kamaki/clients/pithos.py
b/kamaki/clients/pithos.py | ||
---|---|---|
195 | 195 |
break |
196 | 196 |
gevent.joinall(flying) |
197 | 197 |
|
198 |
failures = [r for r in flying if r.exception] |
|
199 |
if len(flying): |
|
200 |
details = ', '.join(['%s.%s'%(i,r) for i,r in enumerate(failures)]) |
|
201 |
raise ClientError(message="Block uploading failed", status=505, details=details) |
|
202 |
|
|
198 | 203 |
def upload_object(self, obj, f, size=None, hash_cb=None, upload_cb=None, etag=None, |
199 | 204 |
content_encoding=None, content_disposition=None, content_type=None, sharing=None, |
200 | 205 |
public=None): |
Also available in: Unified diff