Commit ecf0fc97 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Do not allow thread exceptions to stop errors

parent a3c41714
......@@ -442,9 +442,13 @@ class PithosClient(PithosRestClient):
else:
break
if missing:
try:
details = ['%s' % thread.exception for thread in missing]
except Exception:
details = []
raise ClientError(
'%s blocks failed to upload' % len(missing),
details=['%s' % thread.exception for thread in missing])
details=details)
except KeyboardInterrupt:
sendlog.info('- - - wait for threads to finish')
for thread in activethreads():
......
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