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

Check if file exists before sending the GET request #14

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

kcosta42
Copy link
Contributor

@kcosta42 kcosta42 commented Jan 4, 2022

The function fetch_file_cached call requests.get before checking if the file was already present, which caused it to raise an exception for offline use.

This PR simply moves the check before the call to requests.

@unixpickle unixpickle merged commit 69b5307 into openai:main Mar 21, 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.

2 participants