Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 8b0abef

Browse files
committed
fix, for if there are not files to upload
1 parent a86627c commit 8b0abef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/copy_to_gcp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
print(f"There are {len(filenames)} to upload")
4141

4242
files_dict = {file: f'{gsp_dir}/{file.split("/")[-1]}' for file in filenames}
43-
all_filenames = {**all_filenames, **files_dict}
43+
if len(filenames) > 0:
44+
all_filenames = {**all_filenames, **files_dict}
4445

4546

4647
def one_file(local_file, gsp_file):

0 commit comments

Comments
 (0)