Unverified Commit 9e79c5d1 authored by Janan Zhu's avatar Janan Zhu Committed by GitHub
Browse files

handle OSError in parse_neurochem_resources (#562)

parent a3720bc2
......@@ -43,7 +43,7 @@ def parse_neurochem_resources(info_file_path):
resource_zip = zipfile.ZipFile(io.BytesIO(resource_res.content))
try:
resource_zip.extractall(resource_path)
except PermissionError:
except (PermissionError, OSError):
resource_zip.extractall(local_dir)
resource_path = local_dir
source = os.path.join(resource_path, extracted_name, "resources")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment