Skip to content

Commit

Permalink
Add feedback when no files could be found
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhoey committed Mar 7, 2024
1 parent 349b8b9 commit 8b61514
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vptstools/bin/vph5_to_vpts.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def cli(modified_days_ago, path_s3_folder=None):
}
)
)
if len(days_to_create_vpts) == 0:
raise Exception(f"No h5 files could be found in the current"
f" path '{S3_BUCKET}/{path_s3_folder}'.")

else:
# Load the S3 manifest of today
Expand Down

0 comments on commit 8b61514

Please sign in to comment.