Skip to content

Commit

Permalink
Account for trailing /
Browse files Browse the repository at this point in the history
Previously, the code would fail when the reference database had a trailling '/'
  • Loading branch information
Sam Minot committed Feb 6, 2018
1 parent 521674c commit 450593d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/exec_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ def get_reference_database(ref_db, temp_folder):
logging.info("Getting reference database from S3: " + ref_db)

# Save the database to the local temp folder
local_fp = os.path.join(temp_folder, ref_db.split('/')[-1] + "/")
local_fp = os.path.join(
temp_folder,
ref_db.rstrip("/").split('/')[-1] + "/"
)

assert os.path.exists(local_fp) is False

Expand Down

0 comments on commit 450593d

Please sign in to comment.