We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9453fee commit 77ab46dCopy full SHA for 77ab46d
openml/utils.py
@@ -305,9 +305,9 @@ def _create_cache_directory_for_id(key, id_):
305
Path of the created dataset cache directory.
306
"""
307
cache_dir = os.path.join(_create_cache_directory(key), str(id_))
308
- if os.path.exists(cache_dir) and os.path.isdir(cache_dir):
+ if os.path.isdir(cache_dir):
309
pass
310
- elif os.path.exists(cache_dir) and not os.path.isdir(cache_dir):
+ elif os.path.exists(cache_dir):
311
raise ValueError("%s cache dir exists but is not a directory!" % key)
312
else:
313
os.makedirs(cache_dir)
0 commit comments