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

Fully adjust pithos_cli

parent 68858765
......@@ -460,7 +460,8 @@ class pithos(object):
return foo(self, *args, **kwargs)
except ClientError as ce:
err_msg = ('%s' % ce).lower()
if ce.status == 404 and 'object does not' in err_msg:
if (ce.status == 404 or ce.status == 500)\
and 'object' in err_msg and 'not' in err_msg:
raiseCLIError(ce,
'No object %s in %s\'s container %s'\
% (self.path, self.account, self.container),
......
This diff is collapsed.
......@@ -245,8 +245,6 @@ def print_items(items,
else:
header = ' '.join(unicode(item.pop(key)) for key in title)
print(bold(header))
else:
print('- - -')
if isinstance(item, dict):
print_dict(item, ident=1)
elif isinstance(item, list):
......
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