Skip to content

Commit

Permalink
Fixed bug stopping code at extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
sambowers committed Feb 7, 2018
1 parent 8bf3126 commit 78b74bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biota/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def decompress(targz_file, remove = False):
assert targz_file.endswith("tar.gz"), "File name must end with .tar.gz to be decompressed."

# Check that output file doesn't already exist
assert not os.path.exists(targz_file), "File %s already exists at output location. Not extracting."%targz_file
assert not os.path.exists(targz_file.split('/')[-1].split('.')[0]), "File %s already exists at output location. Not extracting."%targz_file

print 'Extracting %s'%targz_file

Expand Down

0 comments on commit 78b74bc

Please sign in to comment.