Commit d311f87b authored by thomwolf's avatar thomwolf
Browse files

cleanup

parent 7d99e05f
...@@ -287,6 +287,8 @@ def cached_path( ...@@ -287,6 +287,8 @@ def cached_path(
tar_file = tarfile.open(output_path) tar_file = tarfile.open(output_path)
tar_file.extractall(output_path_extracted) tar_file.extractall(output_path_extracted)
tar_file.close() tar_file.close()
else:
raise EnvironmentError("Archive format of {} could not be identified".format(output_path))
return output_path_extracted return output_path_extracted
......
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