Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't fail when Parquet server can't be reached (#1085)
The Parquet file is optional, and failing to reach it (and download it)
should not prevent the usage of the other cached/downloaded files.
  • Loading branch information
PGijsbers authored May 19, 2021
commit 0b786e405ec74e6ea9724b8a79c924a15c17b375
6 changes: 5 additions & 1 deletion openml/datasets/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import numpy as np
import arff
import pandas as pd
import urllib3

import xmltodict
from scipy.sparse import coo_matrix
Expand Down Expand Up @@ -425,7 +426,10 @@ def get_dataset(

arff_file = _get_dataset_arff(description) if download_data else None
if "oml:minio_url" in description and download_data:
parquet_file = _get_dataset_parquet(description)
try:
parquet_file = _get_dataset_parquet(description)
except urllib3.exceptions.MaxRetryError:
parquet_file = None
else:
parquet_file = None
remove_dataset_cache = False
Expand Down