If you merely want to log an exception before raising it again, you need this:

```python
try:
    ...
except requests.ConnectionError:
    # Log it here
    raise
```

Don't replace the exception with a new copy -- you'll lose useful information on what actually went wrong.