forked from LBRYCommunity/lbry-sdk
fix tests for transaction show
This commit is contained in:
parent
4839ca631a
commit
8edebbb684
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,8 @@ class LbryWalletManager(BaseWalletManager):
|
||||||
if not tx:
|
if not tx:
|
||||||
try:
|
try:
|
||||||
raw = await self.ledger.network.get_transaction(txid)
|
raw = await self.ledger.network.get_transaction(txid)
|
||||||
|
if not raw:
|
||||||
|
return {'success': False, 'code': 404, 'message': 'transaction not found'}
|
||||||
height = await self.ledger.network.get_transaction_height(txid)
|
height = await self.ledger.network.get_transaction_height(txid)
|
||||||
except CodeMessageError as e:
|
except CodeMessageError as e:
|
||||||
return {'success': False, 'code': e.code, 'message': e.message}
|
return {'success': False, 'code': e.code, 'message': e.message}
|
||||||
|
|
Loading…
Reference in a new issue