From cc8b47d8826b5a79a3f032514170987afdc0b455 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 19 Nov 2018 15:00:09 -0500 Subject: [PATCH] improve error when get fails to decode the resolved claim --- lbrynet/extras/daemon/Daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbrynet/extras/daemon/Daemon.py b/lbrynet/extras/daemon/Daemon.py index 31dbc3c48..4437546b3 100644 --- a/lbrynet/extras/daemon/Daemon.py +++ b/lbrynet/extras/daemon/Daemon.py @@ -1827,7 +1827,8 @@ class Daemon(AuthJSONRPCServer): raise ResolveError( "Failed to resolve stream at lbry://{}".format(uri.replace("lbry://", "")) ) - + if 'error' in resolved: + raise ResolveError(f"error resolving stream: {resolved['error']}") txid, nout, name = resolved['txid'], resolved['nout'], resolved['name'] claim_dict = ClaimDict.load_dict(resolved['value']) sd_hash = claim_dict.source_hash.decode()