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 2efb094 commit 6a60427Copy full SHA for 6a60427
2 files changed
openml/runs/functions.py
@@ -641,10 +641,8 @@ def get_run(run_id):
641
run_dir = os.path.join(config.get_cache_directory(), "runs", str(run_id))
642
run_file = os.path.join(run_dir, "description.xml")
643
644
- try:
+ if not os.path.exists(run_dir):
645
os.makedirs(run_dir)
646
- except FileExistsError:
647
- pass
648
649
try:
650
return _get_cached_run(run_id)
openml/setups/functions.py
@@ -90,10 +90,8 @@ def get_setup(setup_id):
90
setup_dir = os.path.join(config.get_cache_directory(), "setups", str(setup_id))
91
setup_file = os.path.join(setup_dir, "description.xml")
92
93
+ if not os.path.exists(setup_dir):
94
os.makedirs(setup_dir)
95
96
97
98
99
return _get_cached_setup(setup_id)
0 commit comments