Skip to content

Commit 0fda1a7

Browse files
committed
Troubleshoot CI
1 parent 17a2b08 commit 0fda1a7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plannotate/resources.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def download_databases():
344344
# db_loc = "https://github.com/barricklab/pLannotate/releases/download/v1.1.0/BLAST_dbs.tar.gz"
345345

346346
# subprocess.call(["wget", "-P", f"{ROOT_DIR}/data/", db_loc])
347-
subprocess.call(["curl", "-L", "-o", f"{ROOT_DIR}/data/BLAST_dbs.tar.gz", db_loc])
347+
subprocess.call(["curl", "-L", "-o", f"{ROOT_DIR}/data/BLAST_dbs.tar.gz", db_loc], check=True)
348348

349349
# check if download was successful
350350
if not os.path.exists(f"{ROOT_DIR}/data/BLAST_dbs.tar.gz"):
@@ -356,7 +356,8 @@ def download_databases():
356356

357357
print("Extracting...")
358358
subprocess.call(
359-
["tar", "-xzf", f"{ROOT_DIR}/data/BLAST_dbs.tar.gz", "-C", f"{ROOT_DIR}/data/"]
359+
["tar", "-xzf", f"{ROOT_DIR}/data/BLAST_dbs.tar.gz", "-C", f"{ROOT_DIR}/data/"],
360+
check=True,
360361
)
361362
print("Extraction complete.")
362363
print()

0 commit comments

Comments
 (0)