diff --git a/main.py b/main.py index 9e0e8c4..4a42dff 100644 --- a/main.py +++ b/main.py @@ -163,9 +163,9 @@ def main(): print(f"Different {len(different_files)} files") for key in tqdm.tqdm(new_files.union(different_files)): + source_object = os.path.join(source_prefix, key) + target_object = os.path.join(target_prefix, key) try: - source_object = os.path.join(source_prefix, key) - target_object = os.path.join(target_prefix, key) logging.info( f"Moving {source_bucket}:{source_object} to " f"{target_bucket}:{target_object}" @@ -180,8 +180,8 @@ def main(): except RetryError: logging.warning( "Retry on moving" - "{source_bucket}:{source_object} to " - "{target_bucket}:{target_object}" + f"{source_bucket}:{source_object} to " + f"{target_bucket}:{target_object}" )