Revision 0238c167 kamaki/cli/commands/pithos_cli.py

b/kamaki/cli/commands/pithos_cli.py
714 714
    def main(self, container___path):
715 715
        super(self.__class__,
716 716
            self).main(container___path, path_is_optional=False)
717
        self.client.download_object(self.path, stdout,
717
        try:
718
            self.client.download_object(self.path, stdout,
718 719
            range=self.get_argument('range'),
719 720
            version=self.get_argument('object_version'),
720 721
            if_match=self.get_argument('if_match'),
721 722
            if_none_match=self.get_argument('if_none_match'),
722 723
            if_modified_since=self.get_argument('if_modified_since'),
723 724
            if_unmodified_since=self.get_argument('if_unmodified_since'))
725
        except ClientError as err:
726
            raiseCLIError(err)
724 727

  
725 728

  
726 729
@command()

Also available in: Unified diff