Fix a typo bug in the Krpc error messages.
authorCameron Dale <camrdale@gmail.com>
Sat, 10 May 2008 01:33:24 +0000 (18:33 -0700)
committerCameron Dale <camrdale@gmail.com>
Sat, 10 May 2008 01:33:24 +0000 (18:33 -0700)
apt_p2p_Khashmir/krpc.py

index 7560470..c3dcfb6 100644 (file)
@@ -429,7 +429,7 @@ class KRPC:
             else:
                 # no tid, this transaction was finished already...
                 log.msg('received an error %r from %r for completed request: %r' %
-                        (msg[ERR], msg[RSP]['id'], msg[TID]))
+                        (msg[ERR], addr, msg[TID]))
         else:
             # Received an unknown message type
             if self.config.get('SPEW', False):