File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import os
22import re
33import shutil
4- import sys
54from collections import OrderedDict
65import xmltodict
76from .dataset import OpenMLDataset
87from ..exceptions import OpenMLCacheException
98from .. import config
109from .._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 )
You can’t perform that action at this time.
0 commit comments