When handling a ConnectionError we could be faced with the situation
that we still don't have a connection, so attempting to disconnect would
result in an error. To prevent this, we first check if the connection is
None before attempting to disconnect.
When handling a ConnectionError we could be faced with the situation that we still don't have a connection, so attempting to disconnect would result in an error. To prevent this, we first check if the connection is None before attempting to disconnect.
Fixes https://github.com/Grokzen/redis-py-cluster/issues/453