Skip to content

Commit d3a5516

Browse files
committed
Don't fail when Parquet server can't be reached (openml#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.
1 parent e1b4358 commit d3a5516

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

openml/datasets/functions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import numpy as np
99
import arff
1010
import pandas as pd
11+
import urllib3
1112

1213
import xmltodict
1314
from scipy.sparse import coo_matrix
@@ -425,7 +426,10 @@ def get_dataset(
425426

426427
arff_file = _get_dataset_arff(description) if download_data else None
427428
if "oml:minio_url" in description and download_data:
428-
parquet_file = _get_dataset_parquet(description)
429+
try:
430+
parquet_file = _get_dataset_parquet(description)
431+
except urllib3.exceptions.MaxRetryError:
432+
parquet_file = None
429433
else:
430434
parquet_file = None
431435
remove_dataset_cache = False

0 commit comments

Comments
 (0)