Purposefully raising the exception to alter the control flow is generally frowned upon. Maybe this is better:

```python
if variant_match.count() == 1:
    correct_varaint = variant_mathc[0]
elif variant_match.count() > 1:
    ...
```