Skip to content

Commit

Permalink
Merge pull request #67 from jjconti/patch-2
Browse files Browse the repository at this point in the history
Fix wrong use of exception
  • Loading branch information
serderovsh authored Apr 28, 2020
2 parents ce0ede6 + d62e172 commit 304c961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tronapi/trx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 304c961

Please sign in to comment.