|
@@ -19,7 +19,11 @@ except ClientError as e:
|
|
|
|
|
|
|
|
|
local_file_list = os.listdir(folder_to_sync)
|
|
|
-bucket_file_list = [obj['Key'] for obj in s3.list_objects(Bucket=bucket_target)['Contents']]
|
|
|
+
|
|
|
+try:
|
|
|
+ bucket_file_list = [obj['Key'] for obj in s3.list_objects(Bucket=bucket_target)['Contents']]
|
|
|
+except:
|
|
|
+ bucket_file_list = []
|
|
|
|
|
|
|
|
|
print("Uploading new files ...")
|