Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torchani
Commits
9e79c5d1
"vscode:/vscode.git/clone" did not exist on "052e0ded8a7cbc4c7efca4efd92a57d4fba54c32"
Unverified
Commit
9e79c5d1
authored
Jan 11, 2021
by
Janan Zhu
Committed by
GitHub
Jan 11, 2021
Browse files
handle OSError in parse_neurochem_resources (#562)
parent
a3720bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchani/neurochem/parse_resources.py
torchani/neurochem/parse_resources.py
+1
-1
No files found.
torchani/neurochem/parse_resources.py
View file @
9e79c5d1
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment