Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(s3): Guard against ls errors #148

Merged
merged 3 commits into from
May 3, 2024
Merged

Conversation

devsjc
Copy link
Collaborator

@devsjc devsjc commented May 3, 2024

Fixes for bugs brought up by the implementation of the meteomatics live service. See #142

@devsjc devsjc requested a review from peterdudfield May 3, 2024 12:33
log.warn(
event="init time folder does not exist in store",
path=it.strftime(internal.IT_FOLDER_STRUCTURE_RAW),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should you then make that folder?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at this point - that folder only wants to be made when writing to the store, if it doesn't exist. It doesn't make sense for the copy function to make and then copy an empty folder!

@devsjc devsjc merged commit 049985b into main May 3, 2024
12 checks passed
@devsjc devsjc deleted the devsjc/meteomatics-live-fixes branch May 3, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants