```python
except Exception as e:
    # your code
    if isinstance(e, KeyboardInterrupt):
        raise  # I could not stop the tests
```