Browse code

Merge pull request #110 from orenhe/master

s3cmd get --continue: fix unwanted silencing of S3Error exception when file exists.

Michal Ludvig authored on 2013/02/27 09:55:40
Showing 1 changed files
... ...
@@ -468,7 +468,7 @@ def cmd_object_get(args):
468 468
             if not file_exists: # Delete, only if file didn't exist before!
469 469
                 debug(u"object_get failed for '%s', deleting..." % (destination,))
470 470
                 os.unlink(destination)
471
-                raise
471
+            raise
472 472
 
473 473
         if response["headers"].has_key("x-amz-meta-s3tools-gpgenc"):
474 474
             gpg_decrypt(destination, response["headers"]["x-amz-meta-s3tools-gpgenc"])