From 9837c8134ec8d87f21e187f87135863154307c7b Mon Sep 17 00:00:00 2001 From: Kristofer Peterson Date: Wed, 23 Dec 2020 15:32:51 +0000 Subject: [PATCH] Re-throw exception if decode attempt fails due to KeyError or TypeError. --- nucypher/blockchain/eth/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nucypher/blockchain/eth/interfaces.py b/nucypher/blockchain/eth/interfaces.py index b67e0656f..12c6f25e8 100644 --- a/nucypher/blockchain/eth/interfaces.py +++ b/nucypher/blockchain/eth/interfaces.py @@ -409,7 +409,7 @@ class BlockchainInterface: code = response['code'] message = response['message'] - except (ValueError, IndexError, AttributeError): + except (ValueError, IndexError, AttributeError, KeyError, TypeError): # TODO: #1504 - Try even harder to determine if this is insufficient funds causing the issue, # This may be best handled at the agent or actor layer for registry and token interactions. # Worst case scenario - raise the exception held in context implicitly