diff --git a/qa/rpc-tests/test_framework/mininode.py b/qa/rpc-tests/test_framework/mininode.py index b8ae3346b..60ef7a7c2 100755 --- a/qa/rpc-tests/test_framework/mininode.py +++ b/qa/rpc-tests/test_framework/mininode.py @@ -309,7 +309,7 @@ class CInv(object): def __repr__(self): return "CInv(type=%s hash=%064x)" \ - % (self.typemap[self.type], self.hash) + % (self.typemap.get(self.type, "%d" % self.type), self.hash) class CBlockLocator(object):