fix callback

This commit is contained in:
Jack 2016-08-08 02:08:09 -04:00
parent f32250f431
commit 02cd8b9a44

View file

@ -1946,7 +1946,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
pub = Publisher(self.session, self.lbry_file_manager, self.session.wallet)
d.addCallback(lambda _: pub.start(name, file_path, bid, metadata))
else:
d.addErrback(lambda _: self.session.wallet.claim_name(name, bid, metadata))
d.addCallback(lambda _: self.session.wallet.claim_name(name, bid, metadata))
d.addCallback(lambda txid: self._add_to_pending_claims(name, txid))
d.addCallback(lambda r: self._render_response(r, OK_CODE))
d.addErrback(lambda err: self._render_response(err.getTraceback(), BAD_REQUEST))