Commit 96ec49f2 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Enricch store_append helps, fix docs/donf dep.

parent 795bf206
......@@ -19,7 +19,6 @@
from sys import path, stderr
import os
path.append('/home/saxtouri/src/objpool')
try:
from objpool import http
http
......
......@@ -635,12 +635,21 @@ class store_append(_store_container_command):
upload_cb = progress_bar.get_generator('Appending blocks')
except Exception:
upload_cb = None
self.client.append_object(object=self.path,
source_file=f,
upload_cb=upload_cb)
self.client.append_object(self.path, f, upload_cb)
except ClientError as err:
progress_bar.finish()
if err.status == 404:
if 'container' in ('%s' % err).lower():
raiseCLIError(
err,
'No container %s in account %s'\
% (self.container, self.account),
details=self.generic_err_details)
raise_connection_errors(err)
raiseCLIError(err)
except Exception as e:
progress_bar.finish()
raiseCLIError(e)
finally:
progress_bar.finish()
......
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