forked from LBRYCommunity/lbry-sdk
Missing the return of a defer.fail when claim fails, changing to raise Exception
This commit is contained in:
parent
f11f486f5a
commit
ff10546152
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ class Wallet(object):
|
|||
def _save_metadata(claim_out, metadata):
|
||||
if not claim_out['success']:
|
||||
msg = 'Claim to name {} failed: {}'.format(name, claim_out['reason'])
|
||||
defer.fail(Exception(msg))
|
||||
raise Exception(msg)
|
||||
claim_outpoint = ClaimOutpoint(claim_out['txid'], claim_out['nout'])
|
||||
log.info("Saving metadata for claim %s %d" % (claim_outpoint['txid'], claim_outpoint['nout']))
|
||||
d = self._save_name_metadata(name, claim_outpoint, metadata['sources']['lbry_sd_hash'])
|
||||
|
|
Loading…
Reference in a new issue