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

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

Always

Just for now

View
2 s3cmd
@@ -653,7 +653,7 @@ def cmd_sync_remote2remote(args):
try:
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.