Merge branch 'fix-get-bad-claim-error'
This commit is contained in:
commit
5026d0b2f3
1 changed files with 2 additions and 1 deletions
|
@ -1827,7 +1827,8 @@ class Daemon(AuthJSONRPCServer):
|
||||||
raise ResolveError(
|
raise ResolveError(
|
||||||
"Failed to resolve stream at lbry://{}".format(uri.replace("lbry://", ""))
|
"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']
|
txid, nout, name = resolved['txid'], resolved['nout'], resolved['name']
|
||||||
claim_dict = ClaimDict.load_dict(resolved['value'])
|
claim_dict = ClaimDict.load_dict(resolved['value'])
|
||||||
sd_hash = claim_dict.source_hash.decode()
|
sd_hash = claim_dict.source_hash.decode()
|
||||||
|
|
Loading…
Reference in a new issue