Skip to content

Commit e89c5a9

Browse files
author
Beat Buesser
committed
Update loading of Nursery dataset
- website archive.ics.uci.edu got updated Signed-off-by: Beat Buesser <[email protected]>
1 parent 2111fe7 commit e89c5a9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

art/utils.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,6 @@ def load_nursery(
13241324
path=config.ART_DATA_PATH,
13251325
extract=False,
13261326
url=[
1327-
"https://archive.ics.uci.edu/ml/machine-learning-databases/nursery/nursery.data",
13281327
"https://www.dropbox.com/s/l24hwvkuueor6lp/nursery.data?dl=1",
13291328
],
13301329
)
@@ -1545,13 +1544,9 @@ def progress_bar(blocks: int = 1, block_size: int = 1, total_size: Optional[int]
15451544
urlretrieve(url_i, full_path)
15461545

15471546
except HTTPError as exception: # pragma: no cover
1548-
raise Exception(
1549-
error_msg.format(url_i, exception.code, exception.msg) # type: ignore
1550-
) from HTTPError # type: ignore
1547+
logger.error(url_i, exception)
15511548
except URLError as exception: # pragma: no cover
1552-
raise Exception(
1553-
error_msg.format(url_i, exception.errno, exception.reason) # type: ignore
1554-
) from HTTPError # type: ignore
1549+
logger.error(url_i, exception)
15551550
except (Exception, KeyboardInterrupt): # pragma: no cover
15561551
if os.path.exists(full_path):
15571552
os.remove(full_path)

0 commit comments

Comments
 (0)