From ba6e993adcc31401872eb8d4095c80dd08871e0c Mon Sep 17 00:00:00 2001 From: JeremyWesthead <67918949+JeremyWesthead@users.noreply.github.com> Date: Wed, 24 Jul 2024 17:31:39 +0100 Subject: [PATCH] fix: check for None on filter before `in` check --- gumpy/variantfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gumpy/variantfile.py b/gumpy/variantfile.py index dc8650e..4b777c8 100644 --- a/gumpy/variantfile.py +++ b/gumpy/variantfile.py @@ -566,7 +566,7 @@ def __find_calls(self): not record.is_filter_pass ): # We only want to allow these through if the filter fail contains MIN_FRS - if "MIN_FRS" in record.filter: + if record.filter is not None and "MIN_FRS" in record.filter: # Allow MIN_FRS variant = record.ref variant_type = "ref"