mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-23 13:24:18 +00:00
rpc-tests: handle KeyError nicely in test_framework.py
btcdrak wrote this for me. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
85c807c9ea
commit
d12760b16a
@ -142,6 +142,9 @@ class BitcoinTestFramework(object):
|
|||||||
except AssertionError as e:
|
except AssertionError as e:
|
||||||
print("Assertion failed: "+ str(e))
|
print("Assertion failed: "+ str(e))
|
||||||
traceback.print_tb(sys.exc_info()[2])
|
traceback.print_tb(sys.exc_info()[2])
|
||||||
|
except KeyError as e:
|
||||||
|
print("key not found: "+ str(e))
|
||||||
|
traceback.print_tb(sys.exc_info()[2])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Unexpected exception caught during testing: "+str(e))
|
print("Unexpected exception caught during testing: "+str(e))
|
||||||
traceback.print_tb(sys.exc_info()[2])
|
traceback.print_tb(sys.exc_info()[2])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user