This will fail if negative angles are allowed:

```python
In [1]: angle = -90

In [2]: angle % 90
Out[2]: 0

In [3]: range(angle // 90)
Out[3]: []
```