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

Remove deprecated 'rb' mode #36

Closed
wants to merge 1 commit into from
Closed

Conversation

tdhopper
Copy link

@tdhopper tdhopper commented May 5, 2020

I started getting the error [ERROR] TypeError: put_object() only accepts keyword arguments. at

  File "/var/task/nodb/__init__.py", line 83, in save
    result = s3_object.put('rb', Body=bytesIO)

in Python 3.8. This is on Lambda, I believe it has boto3-1.12.22 and botocore-1.15.22.

The write mode appears to be deprecated and this fixes it.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.123% when pulling 6beb97c on tdhopper:master into 78b4337 on Miserlou:master.

@tdhopper tdhopper closed this Dec 26, 2022
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.

None yet

2 participants