From 0a765e620709dff244f32f0684e7fd5b6440215a Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 25 Nov 2018 18:31:38 -0300 Subject: [PATCH] handle errors on resolve --- lbrynet/extras/wallet/ledger.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbrynet/extras/wallet/ledger.py b/lbrynet/extras/wallet/ledger.py index 7245ae8c4..48016a9e4 100644 --- a/lbrynet/extras/wallet/ledger.py +++ b/lbrynet/extras/wallet/ledger.py @@ -57,9 +57,11 @@ class MainNetLedger(BaseLedger): for uri in uris: try: parse_lbry_uri(uri) + resolutions = await self.network.get_values_for_uris(self.headers.hash().decode(), *uris) except URIParseError as err: return {'error': err.args[0]} - resolutions = await self.network.get_values_for_uris(self.headers.hash().decode(), *uris) + except Exception as e: + return {'error': str(e)} return await self.resolver._handle_resolutions(resolutions, uris, page, page_size) async def get_claim_by_claim_id(self, claim_id):