Add keyerror execption

This commit is contained in:
mdr0id 2019-12-04 07:52:54 -08:00
parent c0d7fde366
commit 04d218f49d
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ class BitcoinTestFramework(object):
except AssertionError as e:
print("Assertion failed: "+ str(e))
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:
print("Unexpected exception caught during testing: "+str(e))
traceback.print_tb(sys.exc_info()[2])