Merge branch 'fix-get-bad-claim-error'

This commit is contained in:
Jack Robison 2018-11-19 17:31:01 -05:00
commit 5026d0b2f3
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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()