fix use of return in inlinecallback, change to defer.returnValue(None)

This commit is contained in:
Kay Kurokawa 2017-12-04 16:01:19 -05:00 committed by Jack Robison
parent 707775214a
commit bfbecd9196
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF

View file

@ -298,7 +298,7 @@ class Daemon(AuthJSONRPCServer):
# automatically renew claims # automatically renew claims
# auto renew is turned off if 0 or some negative number # auto renew is turned off if 0 or some negative number
if self.auto_renew_claim_height_delta < 1: if self.auto_renew_claim_height_delta < 1:
return defer.returnValue(None)
log.debug("Renewing claim") log.debug("Renewing claim")
h = self.session.wallet.network.get_local_height() + self.auto_renew_claim_height_delta h = self.session.wallet.network.get_local_height() + self.auto_renew_claim_height_delta
results = yield self.session.wallet.claim_renew_all_before_expiration(h) results = yield self.session.wallet.claim_renew_all_before_expiration(h)