File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def wrapper(*args, **kwargs):
8282 while True :
8383 try :
8484 return f (* args , ** kwargs )
85- except URLError as e :
85+ except ( URLError , TimeoutError ) as e :
8686 # 412 is a specific OpenML error code.
8787 if isinstance (e , HTTPError ) and e .code == 412 :
8888 raise
@@ -674,8 +674,9 @@ def fetch_openml(
674674 in 0.24.
675675
676676 n_retries : int, default=3
677- Number of retries when HTTP errors are encountered. Error with status
678- code 412 won't be retried as they represent OpenML generic errors.
677+ Number of retries when HTTP errors or network timeouts are encountered.
678+ Error with status code 412 won't be retried as they represent OpenML
679+ generic errors.
679680
680681 delay : float, default=1.0
681682 Number of seconds between retries.
You can’t perform that action at this time.
0 commit comments