From 8edebbb6848d8424c29f2df411bc86c7e892b6fd Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Mon, 2 Sep 2019 15:43:33 -0300 Subject: [PATCH] fix tests for transaction show --- lbry/lbry/wallet/manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbry/lbry/wallet/manager.py b/lbry/lbry/wallet/manager.py index 5ac58994b..6740edad6 100644 --- a/lbry/lbry/wallet/manager.py +++ b/lbry/lbry/wallet/manager.py @@ -199,6 +199,8 @@ class LbryWalletManager(BaseWalletManager): if not tx: try: 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) except CodeMessageError as e: return {'success': False, 'code': e.code, 'message': e.message}