bug fix
This commit is contained in:
parent
8d3bd45102
commit
ed55353700
1 changed files with 8 additions and 5 deletions
|
@ -1188,9 +1188,12 @@ 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:
|
||||||
|
if d.result:
|
||||||
log.info("Cost est for lbry://" + name + ": " + str(d.result) + "LBC")
|
log.info("Cost est for lbry://" + name + ": " + str(d.result) + "LBC")
|
||||||
else:
|
return defer.succeed(None)
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
log.info("Timeout estimating cost for lbry://" + name + ", using key fee")
|
log.info("Timeout estimating cost for lbry://" + name + ", using key fee")
|
||||||
d.cancel()
|
d.cancel()
|
||||||
return defer.succeed(None)
|
return defer.succeed(None)
|
||||||
|
|
Loading…
Reference in a new issue