From 02cd8b9a44b27c6f811df3d4ef3d482266cd816b Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 8 Aug 2016 02:08:09 -0400 Subject: [PATCH] fix callback --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index c5df7ef6d..7134a4a53 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -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))