Re-throw exception if decode attempt fails due to KeyError or TypeError.

pull/2486/head
Kristofer Peterson 2020-12-23 15:32:51 +00:00
parent 71f794c1bd
commit 9837c8134e
1 changed files with 1 additions and 1 deletions

View File

@ -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