Skip to content

Commit b6fa253

Browse files
committed
remove old warning
1 parent 251aeee commit b6fa253

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

openml/datasets/functions.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
import os
22
import re
33
import shutil
4-
import sys
54
from collections import OrderedDict
65
import xmltodict
76
from .dataset import OpenMLDataset
87
from ..exceptions import OpenMLCacheException
98
from .. import config
109
from .._api_calls import _perform_api_call, _read_url
1110

12-
if sys.version_info[0] >= 3:
13-
from urllib.error import URLError
14-
else:
15-
from urllib2 import URLError
16-
1711

1812
############################################################################
1913
# Local getters/accessors to the cache directory
@@ -413,10 +407,6 @@ def _get_dataset_qualities(did_cache_dir, dataset_id):
413407
except (OSError, IOError):
414408
return_code, qualities_xml = _perform_api_call(
415409
"data/qualities/%d" % dataset_id)
416-
except (URLError, UnicodeEncodeError) as e:
417-
# TODO logger.debug
418-
print(e)
419-
raise e
420410

421411
with open(qualities_file, "w") as fh:
422412
fh.write(qualities_xml)

0 commit comments

Comments
 (0)