Skip to content

Commit

Permalink
Make script mrms_pull_topofhour.py raise an exception if no file is f…
Browse files Browse the repository at this point in the history
…ound
  • Loading branch information
mkavulich committed Jul 25, 2023
1 parent 67a028d commit d6efb26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ task_get_extrn_lbcs:
USE_USER_STAGED_EXTRN_FILES: true
verification:
VX_FCST_MODEL_NAME: FV3_GFS_v15p2_CONUS_25km

2 changes: 1 addition & 1 deletion ush/mrms_pull_topofhour.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def main():
with open(target, 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)
else:
print(f"WARNING: Did not find a valid file within 15 minutes of {valid}; doing nothing for this time")
raise FileNotFoundError(f"Did not find a valid file within 15 minutes of {valid}")

if __name__ == "__main__":
main()

0 comments on commit d6efb26

Please sign in to comment.