Explorar el Código

fix in download_version_datalad

Johannes Gütschow hace 1 año
padre
commit
6d79cc8a6e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/download_version_datalad.py

+ 2 - 1
src/download_version_datalad.py

@@ -19,7 +19,8 @@ version_info = versions[version]
 # there are no input files
 # if files are in the target folder consider them to be output files
 output_folder = root_path / downloaded_data_folder / version_info["folder"]
-output_files = list(output_folder.iterdir())
+if output_folder.exists():
+    output_files = list(output_folder.iterdir())
 
 datalad.api.run(
     cmd=f"./venv/bin/python3 src/download_version.py --version {version}",