We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f47a61e commit 2bdbfa0Copy full SHA for 2bdbfa0
1 file changed
cassandra/connection.py
@@ -149,8 +149,8 @@ class ProtocolVersionUnsupported(ConnectionException):
149
Server rejected startup message due to unsupported protocol version
150
"""
151
def __init__(self, host, startup_version):
152
- super(ProtocolVersionUnsupported, self).__init__("Unsupported protocol version on %s: %d",
153
- (host, startup_version))
+ msg = "Unsupported protocol version on %s: %d" % (host, startup_version)
+ super(ProtocolVersionUnsupported, self).__init__(msg, host)
154
self.startup_version = startup_version
155
156
0 commit comments