Skip to content

Commit 0aa3836

Browse files
committed
MyPy fix
1 parent f8aa119 commit 0aa3836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mavedb/scripts/refresh_clinvar_variant_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def refresh_clinvar_variants(db: Session, month: Optional[str], year: str, urns:
104104
if total_variants_with_clingen_ids > 0 and index % (max(total_variants_with_clingen_ids // 100, 1)) == 0:
105105
logger.info(f"Progress: {index / total_variants_with_clingen_ids:.0%}")
106106

107-
if "," in clingen_id:
107+
if clingen_id is not None and "," in clingen_id:
108108
logger.debug("Detected a multi-variant ClinGen allele ID, skipping.")
109109
continue
110110

0 commit comments

Comments
 (0)