Skip to content

Commit

Permalink
Merge pull request #40 from oxfordmmm/minor-call-edge-case-none-filter
Browse files Browse the repository at this point in the history
fix: check for None on filter before `in` check
  • Loading branch information
JeremyWesthead authored Jul 24, 2024
2 parents e951adc + ba6e993 commit 6285fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gumpy/variantfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6285fea

Please sign in to comment.