Browse code

_download: handle S3Error

If we get an S3Error here (i.e. HTTP 404 Not Found), warn and continue
rather than crashing. This can happen if the file is removed from S3
async to us running, after having retrieved the directory listing from S3.

Matt Domsch authored on 2014/02/14 22:51:30
Showing 1 changed files
... ...
@@ -936,6 +936,9 @@ def cmd_sync_remote2local(args):
936 936
                         continue
937 937
                     else:
938 938
                         raise
939
+                except S3Error, e:
940
+                    warning(u"Remote file %s S3Error: %s" % (e.resource, e))
941
+                    continue
939 942
 
940 943
                 try:
941 944
                         # set permissions on destination file