Commit 6f3ef435 authored by Jeremy Hylton's avatar Jeremy Hylton

addr is often a tuple so it can't be passed to string format directly

parent 6abb78ae
......@@ -382,7 +382,7 @@ class ConnectThread(threading.Thread):
try:
(stub, preferred) = self.client.testConnection(c)
except:
log("error in testConnection (%r)" % addr,
log("error in testConnection (%r)" % (addr,),
level=zLOG.ERROR, error=sys.exc_info())
c.close()
# Closing the ZRPC connection will eventually close the
......@@ -392,7 +392,7 @@ class ConnectThread(threading.Thread):
try:
self.client.notifyConnected(stub)
except:
log("error in notifyConnected (%r)" % addr,
log("error in notifyConnected (%r)" % (addr,),
level=zLOG.ERROR, error=sys.exc_info())
c.close()
return 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment