Browse code

* s3cmd: Re-raise the right exception.

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/branches/0.9.8.x@247 830e0280-6d2a-0410-9c65-932aecc39d9d

Michal Ludvig authored on 2008/11/05 14:34:07
Showing 2 changed files
... ...
@@ -1,5 +1,6 @@
1 1
 2008-11-05  Michal Ludvig  <michal@logix.cz>
2 2
 
3
+	* s3cmd: Re-raise the right exception.
3 4
 	* s3cmd, S3/S3.py, S3/Exceptions.py: Don't abort 'sync' or 'put' on files
4 5
 	  that can't be open (e.g. Permision denied). Print a warning and skip over
5 6
 	  instead.
... ...
@@ -512,7 +512,7 @@ def cmd_sync_remote2local(src, dst):
512 512
 				if e.errno in (errno.EPERM, errno.EACCES):
513 513
 					warning("%s not writable: %s" % (dst_file, e.strerror))
514 514
 					continue
515
-				raise
515
+				raise e
516 516
 			except KeyboardInterrupt:
517 517
 				try: dst_stream.close()
518 518
 				except: pass