Skip to content

Commit

Permalink
unpinnnn
Browse files Browse the repository at this point in the history
  • Loading branch information
calderjo committed May 28, 2024
1 parent 4d42af7 commit ed0ca3e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/utils/kagglehub.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ def do_GET(self):
path = m.group(2)
filepath = f"/input/tests/data/kagglehub/models/{model_handle}/{path}"
if not os.path.isfile(filepath):
self.send_response(404)
self.end_headers()
self.send_error(404, "Internet is disabled in our tests "
"kagglehub uses a fake API server "
f"Use `kagglehub.model_download('{model_handle}', path='{path}')` to download the missing file "
f"and copy it to `./docker-python/tests/data/kagglehub/models/{model_handle}/{path}`.")
return

with open(filepath, "rb") as f:
Expand Down

0 comments on commit ed0ca3e

Please sign in to comment.