Skip to content

Commit 2bdbfa0

Browse files
committed
Fix unsupported protocol version error message
1 parent f47a61e commit 2bdbfa0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cassandra/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ class ProtocolVersionUnsupported(ConnectionException):
149149
Server rejected startup message due to unsupported protocol version
150150
"""
151151
def __init__(self, host, startup_version):
152-
super(ProtocolVersionUnsupported, self).__init__("Unsupported protocol version on %s: %d",
153-
(host, startup_version))
152+
msg = "Unsupported protocol version on %s: %d" % (host, startup_version)
153+
super(ProtocolVersionUnsupported, self).__init__(msg, host)
154154
self.startup_version = startup_version
155155

156156

0 commit comments

Comments
 (0)