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 error with param type on S3FileTransfer.upload #292

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

emi420
Copy link
Contributor

@emi420 emi420 commented Feb 3, 2025

What type of PR is this?

  • 🐛 Bug Fix

Related Issue :

What does this PR do ?

The S3FileTransfer class has an upload method that receives a file_path parameter, this parameter could be a str or a PosixPath object. There was an error while checking if the file_path ended with ".html" when the type wasn't a str.

This PR solves that, by checking if file_path is a str before looking for the ".html" substring.

@kshitijrajsharma kshitijrajsharma merged commit c15035b into develop Feb 4, 2025
5 checks passed
@kshitijrajsharma kshitijrajsharma deleted the bump/snapshot_fix branch February 4, 2025 20:22
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.

Fetchdata from osm is not functional with 422 error
2 participants