handle errors on resolve
This commit is contained in:
parent
f83aa61923
commit
0a765e6207
1 changed files with 3 additions and 1 deletions
|
@ -57,9 +57,11 @@ class MainNetLedger(BaseLedger):
|
||||||
for uri in uris:
|
for uri in uris:
|
||||||
try:
|
try:
|
||||||
parse_lbry_uri(uri)
|
parse_lbry_uri(uri)
|
||||||
|
resolutions = await self.network.get_values_for_uris(self.headers.hash().decode(), *uris)
|
||||||
except URIParseError as err:
|
except URIParseError as err:
|
||||||
return {'error': err.args[0]}
|
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)
|
return await self.resolver._handle_resolutions(resolutions, uris, page, page_size)
|
||||||
|
|
||||||
async def get_claim_by_claim_id(self, claim_id):
|
async def get_claim_by_claim_id(self, claim_id):
|
||||||
|
|
Loading…
Reference in a new issue