Skip to content

Commit 19d64f5

Browse files
authored
Merge pull request apache#601 from thobbs/fix-protocol-err-msg
Fix unsupported protocol version error message
2 parents f47a61e + 2bdbfa0 commit 19d64f5

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)