It's the same here as in the previous case. Let's add resilience by preprocessing url:
```python
url = url.rstrip('/') + '/'
```