Don't do this.  raise a suitable error instead, for example:
```python
raise ValueError("The denominator is zero.")
```

And you should test this.