This commit is contained in:
Jack 2016-08-08 01:43:28 -04:00
parent 8d3bd45102
commit ed55353700

View file

@ -1188,11 +1188,14 @@ class LBRYDaemon(jsonrpc.JSONRPC):
def _get_est_cost(self, name): def _get_est_cost(self, name):
def _check_est(d, name): def _check_est(d, name):
if isinstance(d.result, float): try:
log.info("Cost est for lbry://" + name + ": " + str(d.result) + "LBC") if d.result:
else: log.info("Cost est for lbry://" + name + ": " + str(d.result) + "LBC")
log.info("Timeout estimating cost for lbry://" + name + ", using key fee") return defer.succeed(None)
d.cancel() except AttributeError:
pass
log.info("Timeout estimating cost for lbry://" + name + ", using key fee")
d.cancel()
return defer.succeed(None) return defer.succeed(None)
def _add_key_fee(data_cost): def _add_key_fee(data_cost):