Hm, maybe it would be better to do a separate except? This one is starting to get messy.

```python
except TimeoutError as e:
    if retries == 0:
        raise
```