If you are testing for None, do:
```python
if rds_con is None:
```