Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkinsc committed Jun 11, 2019
1 parent 1646333 commit d6f118b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def extract_tarball(tarfile, out_dir=None, threads=None, compression='auto', pip
try:
with open(os.devnull, 'w') as fnull:
subprocess.check_call(cmd, stderr=fnull)
except CalledProcessError as e:
except subprocess.CalledProcessError as e:
fixed_archive = os.path.join(out_dir,os.path.basename(tarfile)+".fixed.zip")
repair_cmd = ['zip', '-FFv', tarfile, '--out', fixed_archive]
cmd = ['unzip', '-q', fixed_archive, '-d', out_dir]
Expand Down

0 comments on commit d6f118b

Please sign in to comment.