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

Commit 8afae9a

Browse files
committed
fix if gsp folder dosnt exists
1 parent 8b0abef commit 8afae9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/copy_to_gcp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
files = get_all_filenames_in_path(dir)
2626
files = sorted(files)
2727
# get files already in gsp
28-
gsp_files_already = get_all_filenames_in_path(gsp_dir)
28+
try:
29+
gsp_files_already = get_all_filenames_in_path(gsp_dir)
30+
except Exception:
31+
gsp_files_already = []
2932
# only get .nc files
3033
filenames = [file for file in files if ".nc" in file]
3134
gsp_files_already = [file for file in gsp_files_already if ".nc" in file]

0 commit comments

Comments
 (0)