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): ...@@ -382,7 +382,7 @@ class ConnectThread(threading.Thread):
try: try:
(stub, preferred) = self.client.testConnection(c) (stub, preferred) = self.client.testConnection(c)
except: except:
log("error in testConnection (%r)" % addr, log("error in testConnection (%r)" % (addr,),
level=zLOG.ERROR, error=sys.exc_info()) level=zLOG.ERROR, error=sys.exc_info())
c.close() c.close()
# Closing the ZRPC connection will eventually close the # Closing the ZRPC connection will eventually close the
...@@ -392,7 +392,7 @@ class ConnectThread(threading.Thread): ...@@ -392,7 +392,7 @@ class ConnectThread(threading.Thread):
try: try:
self.client.notifyConnected(stub) self.client.notifyConnected(stub)
except: except:
log("error in notifyConnected (%r)" % addr, log("error in notifyConnected (%r)" % (addr,),
level=zLOG.ERROR, error=sys.exc_info()) level=zLOG.ERROR, error=sys.exc_info())
c.close() c.close()
return 0 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