fix _send_name_claim json

This commit is contained in:
Jack 2016-08-29 13:44:18 -04:00
parent cadd1f993d
commit 56e2d77039

View file

@ -431,10 +431,10 @@ class LBRYWallet(object):
def _claim_or_update(claim, metadata, _bid): def _claim_or_update(claim, metadata, _bid):
if not claim: if not claim:
log.info("No claim yet, making a new one") log.info("No claim yet, making a new one")
return self._send_name_claim(name, metadata.as_json(), _bid) return self._send_name_claim(name, json.dumps(metadata), _bid)
if not claim['is_mine']: if not claim['is_mine']:
log.info("Making a contesting claim") log.info("Making a contesting claim")
return self._send_name_claim(name, metadata.as_json(), _bid) return self._send_name_claim(name, json.dump(metadata), _bid)
else: else:
log.info("Updating over own claim") log.info("Updating over own claim")
d = self.update_metadata(metadata, claim['value']) d = self.update_metadata(metadata, claim['value'])