New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd_sync_remote2remote crashes on connection error #113

wants to merge 1 commit into
base: master
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings


Just for now

Added handling of S3RequestError handling to cmd_sync_remote2remote

  • Loading branch information...
KarneAsada committed Feb 12, 2013
commit 81fd854e2e49c3d912842c7884021b63487f0609
2 s3cmd
@@ -653,7 +653,7 @@ def cmd_sync_remote2remote(args):
response = s3.object_copy(src_uri, dst_uri, extra_headers)
output("File %(src)s copied to %(dst)s" % { "src" : src_uri, "dst" : dst_uri })
except S3Error, e:
except (S3Error, S3RequestError), e:
error("File %(src)s could not be copied: %(e)s" % { "src" : src_uri, "e" : e })
total_elapsed = time.time() - timestamp_start
outstr = "Done. Copied %d files in %0.1f seconds, %0.2f files/s" % (seq, total_elapsed, seq/total_elapsed)
ProTip! Use n and p to navigate between commits in a pull request.