Skip to content

Commit

Permalink
Merge pull request #113 from rki-mf1/fix/no-crash-filter-ambig
Browse files Browse the repository at this point in the history
Don't crash when filtering empty profile. Closes #112
  • Loading branch information
matthuska authored Oct 5, 2023
2 parents 022e7e8 + 19d5a09 commit fb14f91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sonardb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,8 @@ def filter_ambig(self, profile, explicit_code, keep=None):
str
valid variant profile
"""
if profile is None:
return ""
out = []
keep = set(keep) if keep else set()
for mutation in list(filter(None, profile.split(" "))):
Expand Down

0 comments on commit fb14f91

Please sign in to comment.