diff --git a/tronapi/trx.py b/tronapi/trx.py index 6605430..dfa3adb 100644 --- a/tronapi/trx.py +++ b/tronapi/trx.py @@ -75,7 +75,7 @@ def get_block(self, block: Any = None): if result: return result - return ValueError("The call to {method['url']} did not return a value.") + raise ValueError("The call to {method['url']} did not return a value.") def get_transaction_count_by_blocknum(self, num: int): """Query transaction's count on a specified block by height