Skip to content

Commit

Permalink
Fix the error, which was failing in writing an empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Nov 19, 2022
1 parent 6b017ae commit b8753eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/site_and_regional/modify_singlept_site_neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ def find_surffile(surf_dir, site_name):
surf_file = surf_file[0]
else:
sys.exit(
"Surface data for this site " + site_name + "was not found:" + surf_file,
".",
"\n",
"Please run ./subset_data.py for this site.",
"Surface data for this site " + str(site_name) + " was not found:" + str(surf_dir) + str(sf_name) +
"." +
"\n" +
"Please run ./subset_data.py for this site."
)
return surf_file

Expand Down

0 comments on commit b8753eb

Please sign in to comment.