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

Use context manager while uploading files. #61

Merged
merged 5 commits into from
Jun 23, 2020
Merged

Use context manager while uploading files. #61

merged 5 commits into from
Jun 23, 2020

Conversation

willgraf
Copy link
Contributor

Use with open(img_path, 'rb') as f to make sure to close any open files automatically while uploading files.

@willgraf willgraf merged commit 3b5cbcc into master Jun 23, 2020
@willgraf willgraf deleted the bugfix/59 branch June 23, 2020 23:46
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.

1 participant