Skip to content

Commit

Permalink
feat: provide a better error message for missing VCF
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Dec 16, 2024
1 parent e341601 commit 1d38c40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/tp53/seshat/upload_vcf/_upload_vcf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import os
import time
from datetime import datetime
from datetime import timedelta
Expand Down Expand Up @@ -63,6 +64,9 @@ def upload_vcf(
"""
vcf = str(Path(vcf).expanduser().resolve().absolute())

if not os.path.exists(vcf):
raise FileNotFoundError(f"Could not find VCF at path: {vcf}")

service = webdriver.ChromeService()
options = webdriver.ChromeOptions()
options.add_argument("headless")
Expand Down

0 comments on commit 1d38c40

Please sign in to comment.