Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Commit d6b7ddf

Browse files
committed
Fix _connection attribute access
1 parent 9128e16 commit d6b7ddf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cassandra/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ def get_control_connection_host(self):
13641364
"""
13651365
Returns the control connection host metadata.
13661366
"""
1367-
connection = getattr(self.control_connection, '_connection')
1367+
connection = self.control_connection._connection
13681368
host = connection.host if connection else None
13691369
return self.metadata.get_host(host) if host else None
13701370

@@ -2913,7 +2913,7 @@ def _on_timeout(self):
29132913
if self.is_schema_agreed:
29142914
errors = {self._current_host.address: "Client request timeout. See Session.execute[_async](timeout)"}
29152915
else:
2916-
connection = getattr(self.session.cluster.control_connection, '_connection')
2916+
connection = self.session.cluster.control_connection._connection
29172917
host = connection.host if connection else 'unknown'
29182918
errors = {host: "Request timed out while waiting for schema agreement. See Session.execute[_async](timeout) and Cluster.max_schema_agreement_wait."}
29192919

0 commit comments

Comments
 (0)