fix tests for transaction show

This commit is contained in:
Victor Shyba 2019-09-02 15:43:33 -03:00
parent 4839ca631a
commit 8edebbb684

View file

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